FIxed a mistake (code was doubled!) in format_string MDL-8713

This commit is contained in:
moodler
2007-03-16 02:46:03 +00:00
parent 1ccb8ec916
commit e5636d3015
+1 -5
View File
@@ -1435,7 +1435,7 @@ function format_string ($string, $striplinks = false, $courseid=NULL ) {
$string = preg_replace("/\&(?![a-z0-9#]{1,8};)/", "&", $string);
if (!empty($CFG->filterall)) {
$string = filter_text($string, $courseid);
$string = filter_string($string, $courseid);
}
if ($striplinks) { //strip links in string
@@ -1445,10 +1445,6 @@ function format_string ($string, $striplinks = false, $courseid=NULL ) {
//Store to cache
$strcache[$md5] = $string;
if (!empty($CFG->filterall)) {
$string = filter_string($string, $courseid);
}
return $string;
}