MDL-6529 - strip slashes when displaying category added success messsage

merged from MOODLE_19_STABLE
This commit is contained in:
poltawski
2008-01-07 12:21:06 +00:00
parent e17e126517
commit 1c8ec30d95
+1 -1
View File
@@ -72,7 +72,7 @@ if ($mform->is_cancelled()){
} else {
$newcategory->context = get_context_instance(CONTEXT_COURSECAT, $newcategory->id);
mark_context_dirty($newcategory->context->path);
redirect('index.php?categoryedit=on', get_string('categoryadded', null, $newcategory->name));
redirect('index.php?categoryedit=on', get_string('categoryadded', null, stripslashes($newcategory->name)));
}
} elseif (has_capability('moodle/category:update', $context)) {
$newcategory->id = $category->id;