Feature #18498 » processBaseUrlHook.diff
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')));
|
||
}
|
||
- « Previous
- 1
- 2
- Next »