From: toyomoyo Date: Wed, 28 Nov 2007 02:56:51 +0000 (+0000) Subject: MDL-11800, multilang support for category description X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7aabbf3b584cf30efb390e42ccbd93c88b4a5177;p=moodle.git MDL-11800, multilang support for category description --- diff --git a/course/category.php b/course/category.php index 2a1dadd8d9..434f5626f9 100644 --- a/course/category.php +++ b/course/category.php @@ -33,7 +33,9 @@ if (!$category = get_record("course_categories", "id", $id)) { error("Category not known!"); } - + + $category->name = format_text($category->name,FORMAT_HTML);//for multilang filter to catch up + if (has_capability('moodle/course:create', $context)) { if ($categoryedit !== -1) { $USER->categoryediting = $categoryedit; @@ -91,7 +93,6 @@ } } - /// Print headings $numcategories = count_records("course_categories"); @@ -145,7 +146,7 @@ /// Print current category description if (!$creatorediting && $category->description) { print_box_start(); - echo $category->description; + echo format_text($category->description,FORMAT_HTML); // for multilang filter print_box_end(); }