Index: lib/moodlelib.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/moodlelib.php,v retrieving revision 1.960.2.15 diff -u -r1.960.2.15 moodlelib.php --- lib/moodlelib.php 4 Dec 2007 11:46:12 -0000 1.960.2.15 +++ lib/moodlelib.php 4 Dec 2007 15:11:47 -0000 @@ -4944,17 +4944,17 @@ global $CFG; /// originally these special strings were stored in moodle.php now we are only in langconfig.php - $langconfigstrs = array('alphabet', 'backupnameformat', 'decsep', 'firstdayofweek', 'listsep', 'locale', - 'localewin', 'localewincharset', 'oldcharset', - 'parentlanguage', 'strftimedate', 'strftimedateshort', 'strftimedatetime', - 'strftimedaydate', 'strftimedaydatetime', 'strftimedayshort', 'strftimedaytime', - 'strftimemonthyear', 'strftimerecent', 'strftimerecentfull', 'strftimetime', - 'thischarset', 'thisdirection', 'thislanguage'); + static $langconfigstrs = array('alphabet'=>1, 'backupnameformat'=>1, 'decsep'=>1, 'firstdayofweek'=>1, 'listsep'=>1, 'locale'=>1, + 'localewin'=>1, 'localewincharset'=>1, 'oldcharset'=>1, + 'parentlanguage'=>1, 'strftimedate'=>1, 'strftimedateshort'=>1, 'strftimedatetime'=>1, + 'strftimedaydate'=>1, 'strftimedaydatetime'=>1, 'strftimedayshort'=>1, 'strftimedaytime'=>1, + 'strftimemonthyear'=>1, 'strftimerecent'=>1, 'strftimerecentfull'=>1, 'strftimetime'=>1, + 'thischarset'=>1, 'thisdirection'=>1, 'thislanguage'=>1); $filetocheck = 'langconfig.php'; $defaultlang = 'en_utf8'; - if (in_array($identifier, $langconfigstrs)) { - $module = 'langconfig'; //This strings are under langconfig.php for 1.6 lang packs + if (array_key_exists($identifier, $langconfigstrs)) { + $module = 'langconfig'; //This strings are under langconfig.php for 1.6 lang packs } $lang = current_language();