Missed a global $nls conversion.
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 9 Jul 2009 16:41:48 +0000 (10:41 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 9 Jul 2009 16:41:48 +0000 (10:41 -0600)
imp/lib/Imple/SpellChecker.php

index ba05a51..61cf34b 100644 (file)
@@ -40,8 +40,8 @@ class IMP_Imple_SpellChecker extends IMP_Imple
         }
         if (empty($params['locales'])) {
             $params['locales'] = array();
-            foreach (array_keys($GLOBALS['nls']['spelling']) as $lcode) {
-                $params['locales'][$lcode] = $GLOBALS['nls']['languages'][$lcode];
+            foreach (array_keys(Horde_Nls::$config['spelling']) as $lcode) {
+                $params['locales'][$lcode] = Horde_Nls::$config['languages'][$lcode];
             }
         }
         asort($params['locales'], SORT_LOCALE_STRING);