Project

General

Profile

Feature #18489 » patch-recursive content.patch

Administrator Admin, 2008-03-21 16:56

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
// Construct WHERE clause:
$conf['pidInList'] = trim($this->stdWrap($conf['pidInList'],$conf['pidInList.']));
// Recursive function for the pidInList
if ($conf['recursive'] > 0) {
foreach (explode(',',$conf['pidInList']) as $value) {
$pidList.= $value.','.$this->getTreeList($value, $conf["recursive"]);
}
$conf['pidInList'] = trim($pidList,',');
if (!strcmp($conf['pidInList'],'')) {
$conf['pidInList'] = 'this';
}
(1-1/2)