[BUGFIX] Fix Non-static method tslib_cObj::enableFields() 51/16751/3
authorWouter Wolters <typo3@wouterwolters.nl>
Mon, 26 Nov 2012 20:17:49 +0000 (21:17 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 12 Apr 2013 20:07:45 +0000 (22:07 +0200)
Non-static method tslib_cObj::enableFields() should
not be called statically

Change-Id: I93497b24618d29534331ac42d87ec2baec91cad6
Resolves: #38602
Releases: 6.1, 6.0
Reviewed-on: https://review.typo3.org/16751
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php

index 568b7ea..93bbfa4 100644 (file)
@@ -483,7 +483,7 @@ class AbstractMenuContentObject {
                                        $loadDB = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler');
                                        $loadDB->setFetchAllFields(TRUE);
                                        $loadDB->start($value, 'pages');
-                                       $loadDB->additionalWhere['pages'] = \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::enableFields('pages');
+                                       $loadDB->additionalWhere['pages'] = $this->parent_cObj->enableFields('pages');
                                        $loadDB->getFromDB();
                                        foreach ($loadDB->itemArray as $val) {
                                                $MP = $this->tmpl->getFromMPmap($val['id']);