Project

General

Profile

Bug #20027 » 0010452.patch

Administrator Admin, 2009-02-16 14:52

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
function checkAlternativeIdMethods() {
$this->siteScript = t3lib_div::getIndpEnv('TYPO3_SITE_SCRIPT');
// If PATH_INFO
if (t3lib_div::getIndpEnv('PATH_INFO')) { // If pathinfo contains stuff...
$parts=t3lib_div::trimExplode('/',t3lib_div::getIndpEnv('PATH_INFO'),1);
$parts[]='html';
$pCount = count($parts);
if ($pCount>2) {
$this->type = intval($parts[$pCount-2]);
$this->id = $parts[$pCount-3];
} else {
$this->type = 0;
$this->id = $parts[0];
}
$this->absRefPrefix_force=1;
}
// Call post processing function for custom URL methods.
if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc'])) {
$_params = array('pObj' => &$this);
typo3/sysext/simulatestatic/class.tx_simulatestatic.php (Arbeitskopie)
}
}
}
// If PATH_INFO is defined as simulateStaticDocuments mode and has information:
if ($this->conf['mode'] === 'PATH_INFO' && t3lib_div::getIndpEnv('PATH_INFO')) {
$parts = t3lib_div::trimExplode('/', t3lib_div::getIndpEnv('PATH_INFO'), true);
$pCount = count($parts);
if ($pCount > 1) {
$parentObject->type = intval($parts[$pCount-1]);
$parentObject->id = $parts[$pCount-2];
} else {
$parentObject->type = 0;
$parentObject->id = $parts[0];
}
$parentObject->absRefPrefix_force = 1;
}
}
(1-1/2)