MDL-19418 Replaced ereg* by preg*

This commit is contained in:
nicolasconnault
2009-06-22 01:22:37 +00:00
parent c20b684517
commit 6dbcaceef1
36 changed files with 183 additions and 165 deletions
+1 -1
View File
@@ -930,7 +930,7 @@ class qformat_xml extends qformat_default {
foreach($question->options->questions as $question) {
$thispattern = addslashes("{#".$a_count."}"); // TODO: fix this addslashes
$thisreplace = $question->questiontext;
$expout=ereg_replace($thispattern, $thisreplace, $expout );
$expout=preg_replace("~$thispattern~", $thisreplace, $expout );
$a_count++;
}
break;