MDL-2974 - Corrected notification of correctly entered new category with multilang display

This commit is contained in:
nicolasconnault
2007-03-07 01:25:43 +00:00
parent 18ceee5c25
commit 45b26feebb
+1 -1
View File
@@ -103,7 +103,7 @@
if ($form = data_submitted() and confirm_sesskey() and has_capability('moodle/category:create', $context)) {
if (!empty($form->addcategory)) {
unset($newcategory);
$newcategory->name = $form->addcategory;
$newcategory->name = stripslashes_safe($form->addcategory);
$newcategory->sortorder = 999;
if (!insert_record('course_categories', $newcategory)) {
notify("Could not insert the new category '" . format_string($newcategory->name) . "'");