Project

General

Profile

Feature #18498 » processBaseUrlHook.diff

Administrator Admin, 2009-05-15 23:24

View differences:

typo3/sysext/cms/tslib/class.tslib_pagegen.php (working copy)
$GLOBALS['TSFE']->printError(nl2br($error));
exit;
} else if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/sysext/cms/tslib/class.tslib_pagegen.php']['processBaseUrl'])) {
// Hook to process baseUrl
$hookObjectsArr = array();
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/sysext/cms/tslib/class.tslib_pagegen.php']['processBaseUrl'] as $classRef) {
$hookObj= &t3lib_div::getUserObj($classRef);
if (method_exists($hookObj, 'processBaseUrl')) {
$GLOBALS['TSFE']->baseUrl = $hookObj->processBaseUrl($this);
}
}
} else {
$GLOBALS['TSFE']->baseUrl = $GLOBALS['TSFE']->config['config']['baseURL'];
}
$GLOBALS['TSFE']->anchorPrefix = substr(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'),strlen(t3lib_div::getIndpEnv('TYPO3_SITE_URL')));
}
(2-2/2)