Fixed bug #15547: htmlArea RTE may load extJS debug script in FE which makes page...
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 25 Aug 2010 20:05:43 +0000 (20:05 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 25 Aug 2010 20:05:43 +0000 (20:05 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8689 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 8e14f29..9eec000 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-25  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #15547: htmlArea RTE may load extJS debug script in FE which makes page loading slow
+
 2010-08-24  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #15439: htmlArea RTE: Deprecated call-time pass-by-reference
index 96d19bf..9207f41 100644 (file)
@@ -1,3 +1,7 @@
+2010-08-25  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #15547: htmlArea RTE may load extJS debug script in FE which makes page loading slow
+
 2010-08-24  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #15439: htmlArea RTE: Deprecated call-time pass-by-reference
index 7349fd6..586bd7c 100644 (file)
@@ -65,10 +65,13 @@ t3lib_extMgm::addUserTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKE
        // Add Clear RTE Cache to Clear Cache menu
 require_once(t3lib_extMgm::extPath('rtehtmlarea').'hooks/clearrtecache/ext_localconf.php');
 
-       // Troubleshooting and experimentation
-$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableDebugMode'] = $_EXTCONF['enableDebugMode'] ? $_EXTCONF['enableDebugMode'] : 0;
-$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableCompressedScripts'] = $_EXTCONF['enableCompressedScripts'] ? $_EXTCONF['enableCompressedScripts'] : 0;
-$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableCompressedScripts'] = $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableCompressedScripts'] && !$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableDebugMode'];
+       // Troubleshooting and script compression
+$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableDebugMode'] = isset($_EXTCONF['enableDebugMode']) ? $_EXTCONF['enableDebugMode'] : 0;
+$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableCompressedScripts'] = (isset($_EXTCONF['enableCompressedScripts']) && !$_EXTCONF['enableCompressedScripts']) ? 0 : 1;
+       // Disable script compression when in troubleshooting mode
+if ($TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableDebugMode']) {
+       $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableCompressedScripts'] = 0;
+}
 
        // Integrating with DAM
        // DAM browser may be enabled here only for DAM version lower than 1.1
@@ -183,7 +186,7 @@ if ($TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableAccessibilityIcons']) {
        t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/res/accessibilityicons/pageTSConfig.txt">');
 }
        // Register features that use the style attribute
-$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['allowStyleAttribute'] = $_EXTCONF['allowStyleAttribute'] ? $_EXTCONF['allowStyleAttribute'] : 0;
+$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['allowStyleAttribute'] = (isset($_EXTCONF['allowStyleAttribute']) && !$_EXTCONF['allowStyleAttribute']) ? 0 : 1;
 if ($TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['allowStyleAttribute']) {
        $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TYPO3Color'] = array();
        $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TYPO3Color']['objectReference'] = 'EXT:'.$_EXTKEY.'/extensions/TYPO3Color/class.tx_rtehtmlarea_typo3color.php:&tx_rtehtmlarea_typo3color';