X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/545610af1285629e8355aa6e1f7bdd06b4941026..ba2386e7305e0d6e64db5cc485bc38728728ad8e:/typo3/sysext/extbase/Classes/Configuration/BackendConfigurationManager.php diff --git a/typo3/sysext/extbase/Classes/Configuration/BackendConfigurationManager.php b/typo3/sysext/extbase/Classes/Configuration/BackendConfigurationManager.php index 85447cc18884..8f70ee49afee 100644 --- a/typo3/sysext/extbase/Classes/Configuration/BackendConfigurationManager.php +++ b/typo3/sysext/extbase/Classes/Configuration/BackendConfigurationManager.php @@ -127,22 +127,7 @@ class BackendConfigurationManager extends \TYPO3\CMS\Extbase\Configuration\Abstr * @return integer current page id. If no page is selected current root page id is returned */ protected function getCurrentPageId() { - $pageId = (integer) \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id'); - if ($pageId > 0) { - return $pageId; - } - // get current site root - $rootPages = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid', 'pages', 'deleted=0 AND hidden=0 AND is_siteroot=1', '', '', '1'); - if (count($rootPages) > 0) { - return $rootPages[0]['uid']; - } - // get root template - $rootTemplates = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('pid', 'sys_template', 'deleted=0 AND hidden=0 AND root=1', '', '', '1'); - if (count($rootTemplates) > 0) { - return $rootTemplates[0]['pid']; - } - // fallback - return self::DEFAULT_BACKEND_STORAGE_PID; + return (integer) \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id'); } /**