Fixed bug #16347: htmlArea RTE: PHP Warning: Invalid argument supplied for foreach...
authorStanislas Rolland <typo3@sjbr.ca>
Fri, 12 Nov 2010 16:23:15 +0000 (16:23 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Fri, 12 Nov 2010 16:23:15 +0000 (16:23 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9345 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/ext_localconf.php
typo3/sysext/rtehtmlarea/ext_tables.php

index 351460d..4e89e4a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2010-11-12  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Added feature #16365: htmlArea RTE: Delete compressed files when clearing RTE cache
+       * Fixed bug #16347: htmlArea RTE: PHP Warning: Invalid argument supplied for foreach() in ext_tables.php
 
 2010-11-11  Steffen Kamper  <steffen@typo3.org>
 
index 6c45922..f663e01 100644 (file)
@@ -1,6 +1,7 @@
 2010-11-12  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Added feature #16365: htmlArea RTE: Delete compressed files when clearing RTE cache
+       * Fixed bug #16347: htmlArea RTE: PHP Warning: Invalid argument supplied for foreach() in ext_tables.php
 
 2010-11-11  Stanislas Rolland  <typo3@sjbr.ca>
 
index e639ca3..f96ec83 100644 (file)
@@ -235,12 +235,10 @@ $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['RemoveFormat'] = array();
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['RemoveFormat']['objectReference'] = 'EXT:'.$_EXTKEY.'/extensions/RemoveFormat/class.tx_rtehtmlarea_removeformat.php:&tx_rtehtmlarea_removeformat';
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['RemoveFormat']['addIconsToSkin'] = 0;
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['RemoveFormat']['disableInFE'] = 0;
-$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['RemoveFormat']['contextHelpFile'] = 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xml';
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['PlainText'] = array();
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['PlainText']['objectReference'] = 'EXT:'.$_EXTKEY.'/extensions/PlainText/class.tx_rtehtmlarea_plaintext.php:&tx_rtehtmlarea_plaintext';
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['PlainText']['addIconsToSkin'] = 0;
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['PlainText']['disableInFE'] = 0;
-$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['PlainText']['contextHelpFile'] = 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xml';
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['DefaultClean'] = array();
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['DefaultClean']['objectReference'] = 'EXT:'.$_EXTKEY.'/extensions/DefaultClean/class.tx_rtehtmlarea_defaultclean.php:&tx_rtehtmlarea_defaultclean';
 $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TYPO3HtmlParser'] = array();
index aa3f65c..cb340a6 100644 (file)
@@ -24,12 +24,15 @@ if (!defined ('TYPO3_MODE'))        die ('Access denied.');
        t3lib_extMgm::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
 
                // Add contextual help files
-       t3lib_extMgm::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_General', 'EXT:' . $_EXTKEY . '/locallang_csh.xml');
-       foreach ($TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins'] as $pluginName => $config) {
-               if ($config['contextHelpFile']) {
-                       t3lib_extMgm::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $pluginName, $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins'][$pluginName]['contextHelpFile']);
-               }
+       $htmlAreaRteContextHelpFiles = array(
+               'General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xml',
+               'RemoveFormat' => 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xml',
+               'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xml',
+       );
+       foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
+               t3lib_extMgm::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $key, $file);
        }
+       unset($htmlAreaRteContextHelpFiles);
 
                // Extend TYPO3 User Settings Configuration
 if (TYPO3_MODE === 'BE' && t3lib_extMgm::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {