aboutsummaryrefslogtreecommitdiffstats
path: root/localeDetection.class.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2016-06-13 01:21:04 +0200
committerfilip <filip.komar@gmail.com>2016-06-13 01:21:04 +0200
commit89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83 (patch)
tree1074c62cc16cc42a8b8e0a0902d66d82342cff33 /localeDetection.class.php
parent01adeed1e82e1689e4208a2dee8074517ac64eef (diff)
downloadwww-89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83.tar
www-89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83.tar.gz
www-89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83.tar.bz2
www-89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83.tar.xz
www-89de05fad0c205ad0d5d8475cbb9fd94a9bb5f83.zip
get rid of one warning
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;