Feature #14127 » 0000036-class.tslib_fe.php.diff
class.tslib_fe.php Thu Apr 29 15:49:23 2004 | ||
---|---|---|
if (!$fI['path'] && $fI['file'] && substr($fI['file'],-5)=='.html') {
|
||
$parts = explode('.',$fI['file']);
|
||
$pCount = count($parts);
|
||
// Only overwrite $this->type and $this->id if they are not set already (check this for each variable separately)
|
||
if ($pCount>2) {
|
||
$this->type = intval($parts[$pCount-2]);
|
||
$this->id = $parts[$pCount-3];
|
||
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];
|
||
}
|
||
}
|
||
}
|