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 20654b5 commit d54f58e74543d44aa4e02a9b57023bf9cd2495a3 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->category = $category->id;
$form->questiontext = $recurse; // we use the questiontext field to store the info
// on whether to include questions in subcategories

0 comments on commit d54f58e

Please sign in to comment.