Project

General

Profile

Feature #18489 » patch-recursive-content2.patch

Administrator Admin, 2008-08-15 02:05

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
// Construct WHERE clause:
$conf['pidInList'] = trim($this->stdWrap($conf['pidInList'],$conf['pidInList.']));
// Handle recursive function for the pidInList
if (isset($conf['recursive']) && $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';
}
(2-2/2)