/** * Fetches RealURl configuration for the given page * * @param int $pageId * @return void */ protected function fetchRealURLConfiguration($pageId) { $rootLine = $this->apiWrapper->BEgetRootLine($pageId); $rootPageId = $rootLine[1]['uid']; $this->config = array(); if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'])) { foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] as $config) { if (is_array($config) && $config['pagePath']['rootpage_id'] == $rootPageId) { $this->config = $config; return; } } if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'])) { $this->config = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']; } } else { $this->apiWrapper->sysLog('RealURL is not configured! Please, configure it or uninstall.', 'RealURL', 3); } }