Project

General

Profile

Bug #14417 ยป 0000549-class.t3lib_tcemain.php.diff

Administrator Admin, 2004-11-26 15:52

View differences:

class.t3lib_tcemain.php Fri Nov 26 17:24:06 2004
// If $noRecordCheck is set, then the function does not check permissions
global $TCA;
$uid = intval($uid);
$propArr = $this->getRecordProperties($table, $uid);
$page_propArr = $this->getRecordProperties('pages', $propArr['pid']);
if ($TCA[$table] && $uid) {
$deleteRow = $TCA[$table]['ctrl']['delete'];
if ($noRecordCheck || $this->doesRecordExist($table,$uid,'delete')) {
......
}
if (!$GLOBALS['TYPO3_DB']->sql_error()) {
$this->log($table,$uid,3,0,0,'');
$this->log( $table, $uid,3, $propArr['pid'], 0,
"Record '%s' (%s) was deleted from page '%s' (%s)", 0,
array(
$propArr['header'],
$table.':'.$uid,
$page_propArr['header'],
$propArr['pid']
),
$propArr['pid']);
} else {
$this->log($table,$uid,3,0,100,$GLOBALS['TYPO3_DB']->sql_error());
}
    (1-1/1)