[BUGFIX] Declare LocalizationUtility::translateFileReference static
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 29 Aug 2012 10:59:02 +0000 (12:59 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 29 Aug 2012 11:01:26 +0000 (13:01 +0200)
protected translateFileReference() is not declared static, like the
rest of the class methods. This leads to strict errors.

Change-Id: I63396e69f4bb3d36c7784c1a884dea003c89ecc4
Fixes: #40377
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/14186
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extbase/Classes/Utility/LocalizationUtility.php

index 5290674..f939b47 100644 (file)
@@ -135,7 +135,7 @@ class LocalizationUtility {
         * @see tslib_fe::sL()
         * @author Bastian Waidelich <bastian@typo3.org>
         */
-       protected function translateFileReference($key) {
+       static protected function translateFileReference($key) {
                if (TYPO3_MODE === 'FE') {
                        $value = $GLOBALS['TSFE']->sL($key);
                        return $value !== FALSE ? $value : NULL;