[TASK] RTE: Cleanup configuration of acronym table 05/33905/2
authorStanislas Rolland <typo3@sjbr.ca>
Sat, 8 Nov 2014 16:24:38 +0000 (11:24 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Sat, 8 Nov 2014 16:26:18 +0000 (17:26 +0100)
Releases: master
Resolves: #62785
Change-Id: If85ac80d6ef210313555caf5674a1a5fe8439b38
Reviewed-on: http://review.typo3.org/33905
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
typo3/sysext/rtehtmlarea/Configuration/TCA/Overrides/tx_rtehtmlarea_acronym.php [new file with mode: 0644]
typo3/sysext/rtehtmlarea/Configuration/TCA/tx_rtehtmlarea_acronym.php
typo3/sysext/rtehtmlarea/ext_tables.php

diff --git a/typo3/sysext/rtehtmlarea/Configuration/TCA/Overrides/tx_rtehtmlarea_acronym.php b/typo3/sysext/rtehtmlarea/Configuration/TCA/Overrides/tx_rtehtmlarea_acronym.php
new file mode 100644 (file)
index 0000000..ac3e3cc
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:rtehtmlarea/locallang_csh_abbreviation.xlf');
index 5aa4e03..ef87b36 100644 (file)
@@ -11,7 +11,7 @@ return array(
                        'starttime' => 'starttime',
                        'endtime' => 'endtime'
                ),
-               'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('rtehtmlarea') . 'extensions/Acronym/skin/images/acronym.gif'
+               'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('rtehtmlarea') . 'Resources/Public/Images/Plugins/Acronym/acronym.gif'
        ),
        'interface' => array(
                'showRecordFieldList' => 'hidden,sys_language_uid,term,acronym'
index 603793f..5ddb66a 100644 (file)
@@ -4,8 +4,6 @@ defined('TYPO3_MODE') or die();
 // Add static template for Click-enlarge rendering
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'static/clickenlarge/', 'Clickenlarge Rendering');
 
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xlf');
 // Add contextual help files
 $htmlAreaRteContextHelpFiles = array(
        'General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xlf',
@@ -21,6 +19,7 @@ foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $key, $file);
 }
 unset($htmlAreaRteContextHelpFiles);
+
 // Extend TYPO3 User Settings Configuration
 if (TYPO3_MODE === 'BE' && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
        $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge($GLOBALS['TYPO3_USER_SETTINGS']['columns'], array(