]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11800, multilang support for category description
authortoyomoyo <toyomoyo>
Wed, 28 Nov 2007 02:56:51 +0000 (02:56 +0000)
committertoyomoyo <toyomoyo>
Wed, 28 Nov 2007 02:56:51 +0000 (02:56 +0000)
course/category.php

index 2a1dadd8d99e7c42a80a75078ebf46e4d7c0ccaa..434f5626f9a3f8fa1ca0f1d2a1e60fdbe151ed9e 100644 (file)
@@ -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");
 /// 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();
     }