Project

General

Profile

Bug #22037 » 13386_04.diff

Administrator Admin, 2010-03-26 14:14

View differences:

typo3/class.db_list.inc (working copy)
// Load full table definitions:
t3lib_div::loadTCA($tableName);
// Hide tables which are configured via TSConfig not to be shown (also works for admins):
if (isset($this->tableTSconfigOverTCA[$tableName.'.']['hideTable']) ? $this->tableTSconfigOverTCA[$tableName.'.']['hideTable'] :
(t3lib_div::inList($this->hideTables, $tableName) ? true : $GLOBALS['TCA'][$tableName]['ctrl']['hideTable'])) {
// Don't show table if hidden by TCA ctrl section
$hideTable = $GLOBALS['TCA'][$tableName]['ctrl']['hideTable'] ? TRUE : FALSE;
// Don't show table if hidden by pageTSconfig mod.web_list.hideTables
if (in_array($tableName, t3lib_div::trimExplode(',', $this->hideTables))) {
$hideTable = TRUE;
}
// Override previous selection if table is enabled or hidden by TSconfig TCA override mod.web_list.table
if (isset($this->tableTSconfigOverTCA[$tableName.'.']['hideTable'])) {
$hideTable = $this->tableTSconfigOverTCA[$tableName.'.']['hideTable'] ? TRUE : FALSE;
}
if ($hideTable) {
continue;
}
(2-2/2)