Skip to content

Commit

Permalink
Allowing category themes to be reverted to "none". MDL-16152. Credit …
Browse files Browse the repository at this point in the history
…goes to Caio SBA. Merged from 19_STABLE
  • Loading branch information
stronk7 committed Aug 28, 2008
1 parent f679d73 commit 6f8546c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/editcategory.php
Expand Up @@ -65,9 +65,9 @@
$newcategory->description = $data->description;
$newcategory->parent = $data->parent; // if $id = 0, the new category will be a top-level category

if (!empty($data->theme) && !empty($CFG->allowcategorythemes)) {
if (isset($data->theme) && !empty($CFG->allowcategorythemes)) {
$newcategory->theme = $data->theme;
theme_setup();
theme_setup(); /// TODO: Do we really want the theme to be changed here? Doesn't look ok IMO. Eloy - 20080828
}

if (empty($category) && has_capability('moodle/category:create', $context)) { // Create a new category
Expand Down

0 comments on commit 6f8546c

Please sign in to comment.