From dfc8f368baaf98ea8ba00076f47094ac2e6cb765 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 3 Feb 2011 17:49:36 +0100 Subject: [PATCH] LSsession :: setLocale() : Added includes of lang.*.php files --- public_html/includes/class/class.LSsession.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public_html/includes/class/class.LSsession.php b/public_html/includes/class/class.LSsession.php index b8950dd9..4b9a07b1 100644 --- a/public_html/includes/class/class.LSsession.php +++ b/public_html/includes/class/class.LSsession.php @@ -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) {