[TASK] Declare non static methods as static 01/18301/4
authorGeorg Ringer <georg.ringer@gmail.com>
Fri, 15 Feb 2013 13:32:00 +0000 (14:32 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 18 Mar 2013 20:31:32 +0000 (21:31 +0100)
Change-Id: Ifa199fd6b500f4f161b49a406aa2678abdaa785b
Resolves: #45509
Releases: 6.1
Reviewed-on: https://review.typo3.org/18301
Reviewed-by: Dmitry Dulepov
Reviewed-by: Oliver Klee
Reviewed-by: Simon Schaufelberger
Tested-by: Simon Schaufelberger
Reviewed-by: Soren Malling
Tested-by: Soren Malling
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/View/BackendLayoutView.php

index f1747f0..ec16e68 100644 (file)
@@ -126,7 +126,7 @@ class BackendLayoutView {
                if ($backendLayoutUid) {
                        $backendLayout = $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow('*', 'backend_layout', 'uid=' . $backendLayoutUid);
                } else {
-                       $backendLayout['config'] = $this->getDefaultColumnLayout();
+                       $backendLayout['config'] = self::getDefaultColumnLayout();
                }
                if ($backendLayout) {
                        /** @var $parser \TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser */
@@ -158,8 +158,9 @@ class BackendLayoutView {
         * Get default columns layout
         *
         * @return string Default four column layout
+        * @static
         */
-       public function getDefaultColumnLayout() {
+       static public function getDefaultColumnLayout() {
                return '
                backend_layout {
                        colCount = 4