Project

General

Profile

Bug #16851 » class.tslib_fe_4_0_8.patch

Administrator Admin, 2008-03-31 22:40

View differences:

//Applications/MAMP/htdocs/typo3_src-4.0.8/typo3/sysext/cms/tslib/class.tslib_fe.php 2008-03-27 02:19:10.000000000 +0100
*/
function getStorageSiterootPids() {
$res=array();
reset($this->rootLine);
while(list(,$rC)=each($this->rootLine)) {
if (!$res['_STORAGE_PID']) $res['_STORAGE_PID']=intval($rC['storage_pid']);
if (!$res['_SITEROOT']) $res['_SITEROOT']=$rC['is_siteroot']?intval($rC['uid']):0;
if(is_array($this->rootLine)){
reset($this->rootLine);
while(list(,$rC)=each($this->rootLine)) {
if (!$res['_STORAGE_PID']) $res['_STORAGE_PID']=intval($rC['storage_pid']);
if (!$res['_SITEROOT']) $res['_SITEROOT']=$rC['is_siteroot']?intval($rC['uid']):0;
}
}
return $res;
}
(3-3/4)