From: stronk7 Date: Sat, 15 Apr 2006 17:30:23 +0000 (+0000) Subject: strstr(string haystack,string needle). We were doing the opossite. Bug 5037. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=717f14b627fb1a263e2c32ceaa0f4156a1827f94;p=moodle.git strstr(string haystack,string needle). We were doing the opossite. Bug 5037. (http://moodle.org/bugs/bug.php?op=show&bugid=5037) --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 4ab4b5e1ef..9b7a86d418 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -4932,7 +4932,7 @@ function get_list_of_languages() { $langlist = explode(',', $CFG->langlist); foreach ($langlist as $lang) { $lang = trim($lang); //Just trim spaces to be a bit more permissive - if (strstr('_local',$lang)!==false) { + if (strstr($lang, '_local')!==false) { continue; } if (substr($lang, -5) == '_utf8') { //Remove the _utf8 suffix from the lang to show @@ -4980,7 +4980,7 @@ function get_list_of_languages() { asort($langdirs); /// Get some info from each lang (first from moodledata, then from moodle) foreach ($langdirs as $lang) { - if (strstr('_local',$lang)!==false) { + if (strstr($lang, '_local')!==false) { continue; } if (substr($lang, -5) == '_utf8') { //Remove the _utf8 suffix from the lang to show