Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
530a10c5
Commit
530a10c5
authored
May 01, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
May 01, 2015
Browse files
Merge "Set the default category if the 'c' parameter is missing. Bug 1362182"
parents
fb6cf302
2aae0f4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/view/blocks.php
View file @
530a10c5
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment