MDL-14928 - Adding random questions from a category with an apostrophe in the name does not work. Stupid bloody addslashes. Roll on dmllib 2.0.

This commit is contained in:
tjhunt
2008-05-20 17:09:42 +00:00
parent 0c76f8bc3a
commit dfd00d9d32
+1 -1
View File
@@ -182,7 +182,7 @@
if ($randomcreate > 0) {
$form->name = get_string('random', 'quiz') .' ('. $category->name .')';
$form->name = addslashes(get_string('random', 'quiz') .' ('. $category->name .')');
$form->questiontext = $recurse; // we use the questiontext field to store the info
// on whether to include questions in subcategories
$form->questiontextformat = 0;