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:39 +00:00
parent 20654b5f22
commit d54f58e745
+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->category = $category->id;
$form->questiontext = $recurse; // we use the questiontext field to store the info
// on whether to include questions in subcategories