[CLEANUP] Final cleanup of TCA Overrides 21/31621/5
authorHelmut Hummel <helmut.hummel@typo3.org>
Mon, 14 Jul 2014 22:49:33 +0000 (00:49 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Tue, 15 Jul 2014 08:54:08 +0000 (10:54 +0200)
Some of the files still miss the die statement in
the first line. To be consistent, add it to every
file.

One file had a check for TYPO3_MODE === BE which
is wrong in these files because the result is
cached.

If the first hit with empty cache is done in a FE
request, a wrong result would be cached.

Releases: 6.2, 6.3
Resolves: #60317
Change-Id: I839499100da28ba11d5dcbf81fde87b30b61de81
Reviewed-on: https://review.typo3.org/31621
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <klein.t3@mfc-linz.at>
Tested-by: Markus Klein <klein.t3@mfc-linz.at>
typo3/sysext/extbase/Configuration/TCA/Overrides/fe_groups.php
typo3/sysext/extbase/Configuration/TCA/Overrides/fe_users.php
typo3/sysext/filemetadata/Configuration/TCA/Overrides/sys_file_metadata.php
typo3/sysext/openid/Configuration/TCA/Overrides/be_users.php
typo3/sysext/openid/Configuration/TCA/Overrides/fe_users.php
typo3/sysext/t3editor/Configuration/TCA/Overrides/tt_content.php

index 67c3375..ee4fcb7 100644 (file)
@@ -1,4 +1,6 @@
 <?php
+defined('TYPO3_MODE') or die();
+
 if (!isset($GLOBALS['TCA']['fe_groups']['ctrl']['type'])) {
        $tca = array(
                'ctrl' => array(
index 4cf5112..66477c1 100644 (file)
@@ -1,4 +1,6 @@
 <?php
+defined('TYPO3_MODE') or die();
+
 if (!isset($GLOBALS['TCA']['fe_users']['ctrl']['type'])) {
        $tca = array(
                'ctrl' => array(
index 273b69f..82f878a 100644 (file)
@@ -1,4 +1,6 @@
 <?php
+defined('TYPO3_MODE') or die();
+
 // Prepare new columns for be_users table
 $tempColumns = array(
        'tx_openid_openid' => array(
index 3fb9eb4..52b15ee 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+defined('TYPO3_MODE') or die();
 
 // Prepare new columns for fe_users table
 $tempColumns = array(
index f3a27b6..b565c2c 100644 (file)
@@ -1,22 +1,21 @@
 <?php
+defined('TYPO3_MODE') or die();
 
-if (TYPO3_MODE === 'BE') {
-       // Add the t3editor wizard on the bodytext field of tt_content
-       $GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['wizards']['t3editor'] = array(
-               'enableByTypeConfig' => 1,
-               'type' => 'userFunc',
-               'userFunc' => 'TYPO3\\CMS\\T3editor\\FormWizard->main',
-               'title' => 't3editor',
-               'icon' => 'wizard_table.gif',
-               'module' => array(
-                       'name' => 'wizard_table'
-               ),
-               'params' => array(
-                       'format' => 'html',
-                       'style' => 'width:98%; height: 60%;'
-               )
-       );
+// Add the t3editor wizard on the bodytext field of tt_content
+$GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['wizards']['t3editor'] = array(
+       'enableByTypeConfig' => 1,
+       'type' => 'userFunc',
+       'userFunc' => 'TYPO3\\CMS\\T3editor\\FormWizard->main',
+       'title' => 't3editor',
+       'icon' => 'wizard_table.gif',
+       'module' => array(
+               'name' => 'wizard_table'
+       ),
+       'params' => array(
+               'format' => 'html',
+               'style' => 'width:98%; height: 60%;'
+       )
+);
 
-       // Activate the t3editor only for type html
-       $GLOBALS['TCA']['tt_content']['types']['html']['showitem'] = str_replace('bodytext,', 'bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext.ALT.html_formlabel;;nowrap:wizards[t3editor],', $GLOBALS['TCA']['tt_content']['types']['html']['showitem']);
-}
\ No newline at end of file
+// Activate the t3editor only for type html
+$GLOBALS['TCA']['tt_content']['types']['html']['showitem'] = str_replace('bodytext,', 'bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext.ALT.html_formlabel;;nowrap:wizards[t3editor],', $GLOBALS['TCA']['tt_content']['types']['html']['showitem']);