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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user