Resolves #54160: List module broken on root page
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 3 Dec 2013 15:21:32 +0000 (15:21 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 3 Dec 2013 15:21:32 +0000 (15:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/static_info_tables/trunk@81893 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Classes/Utility/LocalizationUtility.php

index 756b0c1..cd01e6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-03  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Resolves #54160: List module broken on root page
+
 2013-11-27  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Resolves #54008: CachedClassLoader not loaded in ext_localconf in TYPO3 6.2
index 58f9a5d..4bcb5ea 100644 (file)
@@ -253,8 +253,8 @@ class LocalizationUtility {
                                        }
                                }
                        }
-               } elseif (strlen($GLOBALS['BE_USER']->uc['lang']) > 0) {
-                       self::$languageKey = $GLOBALS['BE_USER']->uc['lang'];
+               } else {
+                       self::$languageKey = strlen($GLOBALS['BE_USER']->uc['lang']) > 0 ? $GLOBALS['BE_USER']->uc['lang'] : 'EN';
                        // Get standard locale dependencies for the backend
                        /** @var $locales \TYPO3\CMS\Core\Localization\Locales */
                        $locales = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Locales');