Permalink
Browse files

MDL-14928 - Adding random questions from a category with an apostroph…

…e in the name does not work. Stupid bloody addslashes. Roll on dmllib 2.0.
  • Loading branch information...
1 parent 0c76f8b commit dfd00d9d327db80a616a8267dc9aca61cc799c2c tjhunt committed May 20, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/edit.php
View
@@ -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;

0 comments on commit dfd00d9

Please sign in to comment.