Bug #20541 » 11238.diff
sysext/cms/tslib/content/class.tslib_content_content.php (working copy) | ||
---|---|---|
*/
|
||
public function render($conf = array()) {
|
||
$theValue = '';
|
||
|
||
$ignoreRecordRegister = (($conf['ignoreRecordRegister'])?TRUE:FALSE);
|
||
|
||
$originalRec = $GLOBALS['TSFE']->currentRecord;
|
||
if ($originalRec) { // If the currentRecord is set, we register, that this record has invoked this function. It's should not be allowed to do this again then!!
|
||
if ($originalRec && !$ignoreRecordRegister) { // If the currentRecord is set, we register, that this record has invoked this function. It's should not be allowed to do this again then!!
|
||
$GLOBALS['TSFE']->recordRegister[$originalRec]++;
|
||
}
|
||
|
||
... | ... | |
}
|
||
}
|
||
|
||
if (!$GLOBALS['TSFE']->recordRegister[$conf['table'] . ':' . $row['uid']]) {
|
||
if (!$GLOBALS['TSFE']->recordRegister[$conf['table'] . ':' . $row['uid']] || $ignoreRecordRegister) {
|
||
$this->cObj->currentRecordNumber++;
|
||
$cObj->parentRecordNumber = $this->cObj->currentRecordNumber;
|
||
$GLOBALS['TSFE']->currentRecord = $conf['table'] . ':' . $row['uid'];
|