Follow-up to feature #14277: Apply gzip compression to htmlArea RTE concatenated...
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 10 May 2010 06:03:31 +0000 (06:03 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Mon, 10 May 2010 06:03:31 +0000 (06:03 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7571 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php

index 7b4f1dc..160ede2 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Follow-up to feature #14014: htmlArea RTE should use version numbering method for CSS and JS files
        * Fixed bug #14349: htmlArea RTE: Unavailability of hot key map may cause plugin to fail
+       * Follow-up to feature #14277: Apply gzip compression to htmlArea RTE concatenated js script
 
 2010-05-07  Steffen Kamper  <info@sk-typo3.de>
 
index 1dcd56a..0d87abf 100644 (file)
@@ -2,6 +2,7 @@
 
        * Follow-up to feature #14014: htmlArea RTE should use version numbering method for CSS and JS files
        * Fixed bug #14349: htmlArea RTE: Unavailability of hot key map may cause plugin to fail
+       * Follow-up to feature #14277: Apply gzip compression to htmlArea RTE concatenated js script
 
 2010-05-07  Stanislas Rolland  <typo3@sjbr.ca>
 
index 3db950d..562c191 100644 (file)
@@ -1143,10 +1143,16 @@ class tx_rtehtmlarea_base extends t3lib_rteapi {
                        }
                }
                if ($this->is_FE()) {
-                       return ($GLOBALS['TSFE']->absRefPrefix ? $GLOBALS['TSFE']->absRefPrefix : '') . t3lib_div::createVersionNumberedFilename($relativeFilename);
+                       $filename = ($GLOBALS['TSFE']->absRefPrefix ? $GLOBALS['TSFE']->absRefPrefix : '') . t3lib_div::createVersionNumberedFilename($relativeFilename);
                } else {
-                       return t3lib_div::createVersionNumberedFilename('../' . $relativeFilename);
+                       if ($compress) {
+                               $compressor = t3lib_div::makeInstance('t3lib_compressor');
+                               $filename = $compressor->compressJsFile('../' . $relativeFilename);
+                       } else {
+                               $filename = t3lib_div::createVersionNumberedFilename('../' . $relativeFilename);
+                       }
                }
+               return $filename;
        }
 
        /**