MDL-12697 - Category Themes do not appear when editing off
merged from MOODLE_19_STABLE
This commit is contained in:
+7
-2
@@ -67,8 +67,6 @@
|
||||
$category->theme = $categorytheme;
|
||||
if (! set_field('course_categories', 'theme', $category->theme, 'id', $category->id)) {
|
||||
notify('An error occurred while setting the theme');
|
||||
} else {
|
||||
theme_setup();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,6 +89,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
if(! empty($CFG->allowcategorythemes) ){
|
||||
if(isset($category->theme)){
|
||||
// specifying theme here saves us some dbqs
|
||||
theme_setup($category->theme);
|
||||
}
|
||||
}
|
||||
|
||||
/// Print headings
|
||||
|
||||
$numcategories = count_records("course_categories");
|
||||
|
||||
Reference in New Issue
Block a user