]> git.mjollnir.org Git - moodle.git/commitdiff
Activitynames filter case insensitive again for non-ascii languages MDL-6054 - I...
authorskodak <skodak>
Tue, 17 Oct 2006 19:46:35 +0000 (19:46 +0000)
committerskodak <skodak>
Tue, 17 Oct 2006 19:46:35 +0000 (19:46 +0000)
lib/filterlib.php

index 3b47146d9345247d34e2b175d0d7b087f53b1b72..fec3a7f9d15e927435fb62ece0e69fb52a28c719 100644 (file)
@@ -164,8 +164,9 @@ function filter_phrases ($text, &$link_array, $ignoretagsopen=NULL, $ignoretagsc
             }
         }
 
+        $u = empty($CFG->unicodedb) ? '' : 'u'; //regex unicode modifier
     /// Regular expression modifiers
-        $modifiers = ($linkobject->work_casesensitive) ? 's' : 'is';
+        $modifiers = ($linkobject->work_casesensitive) ? 's' : 'is'.$u;
 
     /// Do we need to do a fullmatch?
     /// If yes then go through and remove any non full matching entries