MDL-12697 - Category Themes do not appear when editing off

merged from MOODLE_19_STABLE
This commit is contained in:
poltawski 2007-12-25 01:00:31 +00:00
parent 4ef8e74c53
commit f4eb549fbd

View File

@ -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");