Follow-up to #14277: Removed redundant code / Improve t3lib_compressor
authorBenni Mack <benni.mack@typo3.org>
Wed, 19 May 2010 21:20:30 +0000 (21:20 +0000)
committerBenni Mack <benni.mack@typo3.org>
Wed, 19 May 2010 21:20:30 +0000 (21:20 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7642 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_compressor.php

index 644a480..177fffc 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-18  Benjamin Mack  <benni@typo3.org>
+
+       * Follow-up to #14277: Removed redundant code / Improve t3lib_compressor
+
 2010-05-18  Ernesto Baschny  <ernst@cron-it.de>
 
        * Follow-up to bug #13670: Wrong variable name causing EM not to show "Extensions found only on this server" on "Import extensions" search result
index 971d069..3edb680 100644 (file)
@@ -63,17 +63,6 @@ class t3lib_compressor {
                                $this->gzipCompressionLevel = $compressionLevel;
                        }
                }
-
-                       // decide whether we should create gzipped versions or not
-               $compressionLevel = $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['compressionLevel'];
-                       // we need zlib for gzencode()
-               if (extension_loaded('zlib') && $compressionLevel) {
-                       $this->createGzipped = TRUE;
-                               // $compressionLevel can also be TRUE
-                       if (t3lib_div::testInt($compressionLevel)) {
-                               $this->gzipCompressionLevel = $compressionLevel;
-                       }
-               }
        }
 
        /**
@@ -87,6 +76,7 @@ class t3lib_compressor {
         * @return      array   CSS files
         */
        public function concatenateCssFiles(array $cssFiles, $options = array()) {
+
                $filesToInclude = array();
                foreach ($cssFiles as $filename => $fileOptions) {
                                // we remove BACK_PATH from $filename, so make it relative to TYPO3_mainDir