LSsession :: setLocale() : Added includes of lang.*.php files
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 3 Feb 2011 16:49:36 +0000 (17:49 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 3 Feb 2011 16:49:36 +0000 (17:49 +0100)
public_html/includes/class/class.LSsession.php

index b8950dd..4b9a07b 100644 (file)
@@ -373,6 +373,9 @@ class LSsession {
       if (is_file(LS_I18N_DIR.'/'.$lang.'/lang.php')) {
         include(LS_I18N_DIR.'/'.$lang.'/lang.php');
       }
+      foreach (listFiles(LS_I18N_DIR.'/'.$lang,'/^lang.+\.php$/') as $file) {
+        include(LS_I18N_DIR."/$lang/$file");
+      }
     }
     else {
       if ($encoding && $lang) {