MDL-20636 Kill Left over addslashes in the question engine code. #223

This commit is contained in:
Tim Hunt
2011-03-11 13:45:38 +00:00
parent c8b3ad7c46
commit 56b0df7eac
5 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -1251,7 +1251,7 @@ class qformat_xml extends qformat_default {
case 'multianswer':
$acount = 1;
foreach ($question->options->questions as $question) {
$thispattern = addslashes("{#".$acount."}");
$thispattern = "{#".$acount."}";
$thisreplace = $question->questiontext;
$expout = preg_replace("~$thispattern~", $thisreplace, $expout );
$acount++;