mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
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:
parent
2dde39c1c2
commit
413884c736
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user