aboutsummaryrefslogtreecommitdiffstats
path: root/localeDetection.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'localeDetection.class.php')
-rw-r--r--localeDetection.class.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/localeDetection.class.php b/localeDetection.class.php
index d2a3a089d..13ae82bad 100644
--- a/localeDetection.class.php
+++ b/localeDetection.class.php
@@ -58,7 +58,8 @@ class ChooseLocale
foreach ($acclang as $var) {
$locale = $this -> _cleanHTTPlocaleCode($var);
- $shortLocale = array_shift(explode('-', $locale));
+ $exploded_locale = explode('-', $locale);
+ $shortLocale = array_shift($exploded_locale);
if (in_array($locale, $this -> supportedLocales)) {
$l = $locale;