Feature #18489 » patch-recursive content.patch
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';
|
||
}
|