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
This commit is contained in:
stronk7 2005-07-05 16:43:48 +00:00
parent 2dde39c1c2
commit 413884c736

View File

@ -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