Project

General

Profile

Bug #20194 » 10706_v2.diff

Administrator Admin, 2009-11-02 12:04

View differences:

typo3/alt_doc.php (working copy)
if (($key == 'saveDocNew' || $key == 'saveDocView') && $TSconfig['value'] != '0') {
$output = !(isset($TSconfig['properties'][$table]) && $TSconfig['properties'][$table] == '0');
}
// exclude view for sysfolders. Configuration: options.saveDocView.excludeDokTypes = 254,255,...
if ($key == 'saveDocView') {
if (isset($TSconfig['properties']['excludeDokTypes'])) {
$excludeDokTypes = t3lib_div::trimExplode(',', $TSconfig['properties']['excludeDokTypes'], true);
} else {
// exclude sysfolders and recycler by default
$excludeDokTypes = array('254', '255');
}
if (in_array($this->pageinfo['doktype'], $excludeDokTypes) && ($output !== true || !array_key_exists($table, $TSconfig['properties']))) {
$output = false;
}
}
return $output;
}
(3-3/4)