Index: ext_tables.php =================================================================== --- ext_tables.php (Revision 26963) +++ ext_tables.php (Arbeitskopie) @@ -14,11 +14,11 @@ $TCA['tt_news'] = array ( 'ctrl' => array ( 'title' => 'LLL:EXT:tt_news/locallang_tca.xml:tt_news', - 'label' => $confArr['label'], - 'label_alt' => $confArr['label_alt'].($confArr['label_alt2']?','.$confArr['label_alt2']:''), + 'label' => ($confArr['label']) ? $confArr['label'] : 'title', + 'label_alt' => $confArr['label_alt'] . ($confArr['label_alt2'] ? ',' . $confArr['label_alt2'] : ''), 'label_alt_force' => $confArr['label_alt_force'], 'default_sortby' => 'ORDER BY datetime DESC', - 'prependAtCopy' => $confArr['prependAtCopy']?'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy':'', + 'prependAtCopy' => $confArr['prependAtCopy'] ? 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy' : '', 'versioningWS' => TRUE, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', Index: tca.php =================================================================== --- tca.php (Revision 26963) +++ tca.php (Arbeitskopie) @@ -6,16 +6,16 @@ // get extension confArr $confArr = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['tt_news']); // switch the use of the "StoragePid"(general record Storage Page) for tt_news categories -$fTableWhere = ($confArr['useStoragePid']?'AND tt_news_cat.pid=###STORAGE_PID### ':''); +$fTableWhere = ($confArr['useStoragePid'] ? 'AND tt_news_cat.pid=###STORAGE_PID### ' : ''); // page where records will be stored in that have been created with a wizard -$sPid = ($fTableWhere?'###STORAGE_PID###':'###CURRENT_PID###'); +$sPid = ($fTableWhere ? '###STORAGE_PID###' : '###CURRENT_PID###'); // l10n_mode for text fields -$l10n_mode = ($confArr['l10n_mode_prefixLangTitle']?'prefixLangTitle':''); -$l10n_mode_author = ($confArr['l10n_mode_prefixLangTitle']?'mergeIfNotBlank':''); +$l10n_mode = ($confArr['l10n_mode_prefixLangTitle'] ? 'prefixLangTitle' : ''); +$l10n_mode_author = ($confArr['l10n_mode_prefixLangTitle'] ? 'mergeIfNotBlank' : ''); // l10n_mode for the image field -$l10n_mode_image = ($confArr['l10n_mode_imageExclude']?'exclude':'mergeIfNotBlank'); +$l10n_mode_image = ($confArr['l10n_mode_imageExclude'] ? 'exclude' : 'mergeIfNotBlank'); // hide new localizations -$hideNewLocalizations = ($confArr['hideNewLocalizations']?'mergeIfNotBlank':''); +$hideNewLocalizations = ($confArr['hideNewLocalizations'] ? 'mergeIfNotBlank' : ''); // ****************************************************************** // This is the standard TypoScript news table, tt_news // ******************************************************************