Commit 530a10c5 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Set the default category if the 'c' parameter is missing. Bug 1362182"

parents fb6cf302 2aae0f4e
......@@ -100,9 +100,12 @@ else {
$editabletitle = true;
}
$category = param_alpha('c', '');
// Make the default category the first tab if none is set
if ($category === '') {
$category = '';
if (param_exists('c')) {
$category = param_variable('c');
}
if (empty($category)) {
$category = $view->get_default_category();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment