]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11800 improving previous commit; merged from MOODLE-19_STABLE
authorskodak <skodak>
Sat, 15 Dec 2007 12:05:54 +0000 (12:05 +0000)
committerskodak <skodak>
Sat, 15 Dec 2007 12:05:54 +0000 (12:05 +0000)
course/category.php

index 434f5626f9a3f8fa1ca0f1d2a1e60fdbe151ed9e..48fcd7a84a70c69aa2319d57786a8242081cd43e 100644 (file)
@@ -33,9 +33,7 @@
     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;
 
     $navlinks = array();
     $navlinks[] = array('name' => $strcategories, 'link' => 'index.php', 'type' => 'misc');
-    $navlinks[] = array('name' => $category->name, 'link' => null, 'type' => 'misc');
+    $navlinks[] = array('name' => format_string($category->name), 'link' => null, 'type' => 'misc');
     $navigation = build_navigation($navlinks);
 
     if ($creatorediting) {
 /// Print current category description
     if (!$creatorediting && $category->description) {
         print_box_start();
-        echo format_text($category->description,FORMAT_HTML); // for multilang filter
+        echo format_text($category->description); // for multilang filter
         print_box_end();
     }