From: nicolasconnault <nicolasconnault>
Date: Wed, 10 Oct 2007 06:04:14 +0000 (+0000)
Subject: MDL-11543 format_string(parent category name)
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2c23af9d87099f7c4cbc568e24d814a38ee8059a;p=moodle.git

MDL-11543 format_string(parent category name)
---

diff --git a/course/editcategory_form.php b/course/editcategory_form.php
index 031114640a..65fdeddc80 100644
--- a/course/editcategory_form.php
+++ b/course/editcategory_form.php
@@ -11,7 +11,7 @@ class editcategory_form extends moodleform {
         $categories = get_categories();
         $options = array(get_string('top'));
         foreach ($categories as $catid => $cat) {
-            $options[$catid] = $cat->name;
+            $options[$catid] = format_string($cat->name);
         }
         
         $mform->addElement('select', 'parent', get_string('parentcategory'), $options);