From 413884c73689c32669de5ec8309c0ac936f7bbb2 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 5 Jul 2005 16:43:48 +0000 Subject: [PATCH] With the latest feature I introduced to filterlib (the ability to specify a replacement phrase instead of printing the linked phrase I introduced a bug about text being showed with the case of the concept instead of the case of the text under case insensitive filtering. Detected and solved now. Bug 3688. (http://moodle.org/bugs/bug.php?op=show&bugid=3688) Merged from MOODLE_15_STABLE --- lib/filterlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filterlib.php b/lib/filterlib.php index 899169f9095..926c5b9b304 100644 --- a/lib/filterlib.php +++ b/lib/filterlib.php @@ -134,8 +134,8 @@ function filter_phrases ($text, &$link_array, $ignoretagsopen=NULL, $ignoretagsc if ($linkobject->replacementphrase) { //We have specified a replacement phrase /// Strip tags $linkobject->work_replacementphrase = strip_tags($linkobject->replacementphrase); - } else { //The replacement is the phrase itself - $linkobject->work_replacementphrase = $linkobject->work_phrase; + } else { //The replacement is the original phrase as matched below + $linkobject->work_replacementphrase = '$1'; } /// Quote any regular expression characters and the delimiter in the work phrase to be searched