From e5636d30153d7e584ef42e9cd802276a6b333dfd Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 16 Mar 2007 02:46:03 +0000 Subject: [PATCH] FIxed a mistake (code was doubled!) in format_string MDL-8713 --- lib/weblib.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 5e24f124993..baba66f1657 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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; }