[BUGFIX] Non-static function t3lib_TStemplate::sortedKeyList()
authorOliver Hader <oliver@typo3.org>
Mon, 19 Sep 2011 22:35:08 +0000 (00:35 +0200)
committerOliver Hader <oliver@typo3.org>
Mon, 19 Sep 2011 22:38:22 +0000 (00:38 +0200)
t3lib_TStemplate::sortedKeyList() is used in a static context
but is not declared to be static.

Change-Id: I2659730d60e750d42d7c46372067e926a0d2411d
Resolves: #30064
Releases: 4.6
Reviewed-on: http://review.typo3.org/5091
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
t3lib/class.t3lib_tstemplate.php

index 4e9337e..6629625 100644 (file)
@@ -1261,7 +1261,7 @@ class t3lib_TStemplate {
         * @return      array           An array with all integer properties listed in numeric order.
         * @see tslib_cObj::cObjGet(), tslib_gifBuilder, tslib_imgmenu::makeImageMap()
         */
-       function sortedKeyList($setupArr, $acceptOnlyProperties = FALSE) {
+       public static function sortedKeyList($setupArr, $acceptOnlyProperties = FALSE) {
                $keyArr = array();
                $setupArrKeys = array_keys($setupArr);
                foreach ($setupArrKeys as $key) {