Index: typo3/class.db_list_extra.inc
===================================================================
--- typo3/class.db_list_extra.inc (révision 2861)
+++ typo3/class.db_list_extra.inc (copie de travail)
@@ -313,7 +313,9 @@
// Init
$addWhere = '';
- $titleCol = $TCA[$table]['ctrl']['label'];
+ $label = $TCA[$table]['ctrl']['label'];
+ $titleCol = ($label ? $label : 'pid');
+
$thumbsCol = $TCA[$table]['ctrl']['thumbnail'];
$l10nEnabled = $TCA[$table]['ctrl']['languageField'] && $TCA[$table]['ctrl']['transOrigPointerField'] && !$TCA[$table]['ctrl']['transOrigPointerTable'];
@@ -434,13 +436,17 @@
}
$out.=$this->addelement(0,'',$theData,'class="c-table-row-spacer"',$this->leftMargin);
}
+ $theTitle = $GLOBALS['LANG']->sL($TCA[$table]['ctrl']['title'],1);
+ if ($theTitle == '') {
+ $theTitle = $table;
+ }
// Header line is drawn
$theData = Array();
if ($this->disableSingleTableView) {
- $theData[$titleCol] = ''.$GLOBALS['LANG']->sL($TCA[$table]['ctrl']['title'],1).' ('.$this->totalItems.')';
+ $theData[$titleCol] = ''.$theTitle.' ('.$this->totalItems.')';
} else {
- $theData[$titleCol] = $this->linkWrapTable($table,''.$GLOBALS['LANG']->sL($TCA[$table]['ctrl']['title'],1).' ('.$this->totalItems.') backPath,'gfx/'.($this->table?'minus':'plus').'bullet_list.gif','width="18" height="12"').' hspace="10" class="absmiddle" title="'.$GLOBALS['LANG']->getLL(!$this->table?'expandView':'contractView',1).'" alt="" />');
+ $theData[$titleCol] = $this->linkWrapTable($table,''.$theTitle.' ('.$this->totalItems.') backPath,'gfx/'.($this->table?'minus':'plus').'bullet_list.gif','width="18" height="12"').' hspace="10" class="absmiddle" title="'.$GLOBALS['LANG']->getLL(!$this->table?'expandView':'contractView',1).'" alt="" />');
}
// CSH: