Feature #16253 » 3692_new.patch
typo3_src-4.0/typo3/sysext/cms/tslib/class.tslib_fe.php 2006-06-19 09:35:39.765921570 +0200 | ||
---|---|---|
*/
|
||
function getStorageSiterootPids() {
|
||
$res=array();
|
||
$storage_pids=array();
|
||
$storage_pids_to_siteroot=array();
|
||
$prev_to_siteroot=false;
|
||
|
||
reset($this->rootLine);
|
||
while(list(,$rC)=each($this->rootLine)) {
|
||
if (!$res['_STORAGE_PID']) $res['_STORAGE_PID']=intval($rC['storage_pid']);
|
||
$storage_pids[] = intval($rC['storage_pid']);
|
||
if (!$prev_to_siteroot) {
|
||
$storage_pids_to_siteroot[] = intval($rC['storage_pid']);
|
||
|
||
// check if we are on the siteroot and then set the according var
|
||
if ($rC['is_siteroot']) $prev_to_siteroot = true;
|
||
}
|
||
if (!$res['_SITEROOT']) $res['_SITEROOT']=$rC['is_siteroot']?intval($rC['uid']):0;
|
||
}
|
||
if (count($storage_pids) > 0) {
|
||
$res['_STORAGE_PIDS'] = implode(',', $storage_pids);
|
||
}
|
||
if (count($storage_pids_to_siteroot) > 0) {
|
||
$res['_STORAGE_PIDS_TO_SITEROOT'] = implode(',', $storage_pids_to_siteroot);
|
||
}
|
||
return $res;
|
||
}
|
||
- « Previous
- 1
- 2
- Next »