Project

General

Profile

Bug #16851 » class.tslib_fe_4_1_6.patch

Administrator Admin, 2008-03-31 22:40

View differences:

/Applications/MAMP/htdocs/typo3_src-4.1.6/typo3/sysext/cms/tslib/class.tslib_fe.php 2008-03-27 02:52:51.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;
}
(2-2/4)