Project

General

Profile

Feature #14127 » 0000036-class.tslib_fe.diff

Administrator Admin, 2004-06-21 14:44

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php 2004-06-21 14:37:04.000000000 +0200
if (!$fI['path'] && $fI['file'] && substr($fI['file'],-5)=='.html') {
$parts = explode('.',$fI['file']);
$pCount = count($parts);
if ($pCount>2) {
$this->type = intval($parts[$pCount-2]);
$this->id = $parts[$pCount-3];
if ($pCount>2) { // Overwrite $this->type and $this->id but only if they are not set already
if(!$this->type) $this->type = intval($parts[$pCount-2]);
if(!$this->id) $this->id = $parts[$pCount-3];
} else {
$this->type = 0;
$this->id = $parts[0];
if(!$this->type) $this->type = 0;
if(!$this->id) $this->id = $parts[0];
}
}
}
......
$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];
if ($pCount>2) { // Overwrite $this->type and $this->id but only if they are not set already
if(!$this->type) $this->type = intval($parts[$pCount-2]);
if(!$this->id) $this->id = $parts[$pCount-3];
} else {
$this->type = 0;
$this->id = $parts[0];
if(!$this->type) $this->type = 0;
if(!$this->id) $this->id = $parts[0];
}
$this->absRefPrefix_force=1;
}
(2-2/4)