[BUGFIX] Missing static keyword for addFieldsToUserSettings
authorSusanne Moog <typo3@susannemoog.de>
Sat, 21 Apr 2012 10:14:16 +0000 (12:14 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 21 Apr 2012 14:09:18 +0000 (16:09 +0200)
All t3lib_extMgm methods are meant to be called statically.
The function addFieldsToUserSettings is missing the static keyword.

Change-Id: I4dbc1f64bc432695fac8a295261e53560bcb03d7
Fixes: #36399
Releases: 4.5,4.6,4.7,6.0
Reviewed-on: http://review.typo3.org/10669
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Oliver Klee
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_extmgm.php

index ea95041..624821a 100644 (file)
@@ -521,7 +521,7 @@ final class t3lib_extMgm {
         *                                       Example: "before:password,after:email".
         * @return void
         */
-       public function addFieldsToUserSettings($addFields, $insertionPosition = '') {
+       public static function addFieldsToUserSettings($addFields, $insertionPosition = '') {
                $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] = self::executePositionedStringInsertion(
                        $GLOBALS['TYPO3_USER_SETTINGS']['showitem'],
                        $addFields,