From f4eb549fbd7322bec5ad8bf4510d304613e00c80 Mon Sep 17 00:00:00 2001 From: poltawski Date: Tue, 25 Dec 2007 01:00:31 +0000 Subject: [PATCH] MDL-12697 - Category Themes do not appear when editing off merged from MOODLE_19_STABLE --- course/category.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/course/category.php b/course/category.php index 48fcd7a84a..ff79afcbc0 100644 --- a/course/category.php +++ b/course/category.php @@ -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"); -- 2.39.5