mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-12697 - Category Themes do not appear when editing off
merged from MOODLE_19_STABLE
This commit is contained in:
parent
4ef8e74c53
commit
f4eb549fbd
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user