[BUGFIX] Strict Standards - setLanguageKeys must be static 06/27506/3
authorŁukas Jurys <lukasz.jurys@me.com>
Sun, 9 Feb 2014 11:39:41 +0000 (12:39 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Mon, 10 Feb 2014 11:48:16 +0000 (12:48 +0100)
protected LocalizationUtility::setLanguageKeys() is only
called from static initializeLocalization and needs to
be static, too.

Resolves: #47983
Releases: 6.2
Change-Id: I7d0a4f5e8fc09ee049a6a7af1be65d5d5e8bf5e4
Reviewed-on: https://review.typo3.org/27506
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Oliver Klee
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/extbase/Classes/Utility/LocalizationUtility.php

index 96fe50b..23cb58f 100644 (file)
@@ -182,7 +182,7 @@ class LocalizationUtility {
         *
         * @return void
         */
-       protected function setLanguageKeys() {
+       static protected function setLanguageKeys() {
                self::$languageKey = 'default';
                self::$alternativeLanguageKeys = array();
                if (TYPO3_MODE === 'FE') {