Fixed bug #14565: There is no way to disable compress and concatenate
authorSteffen Kamper <info@sk-typo3.de>
Sun, 13 Jun 2010 23:41:26 +0000 (23:41 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sun, 13 Jun 2010 23:41:26 +0000 (23:41 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7912 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_pagerenderer.php

index dc36fa9..8769e90 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-06-13  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #14565: There is no way to disable compress and concatenate
        * Fixed bug #14545: [No Title] shown when editing a record on root level (Thanks to Reinhard Fuehricht)
        * Fixed bug #14681: Use self:: for static method calls with classname:: within the same class in t3lib (Thanks to Sebastian Michaelsen)
        * Fixed bug #14538: Icons missing in page tree for "Page contains" pages (Thanks to Steffen Ritter)
index 496e7f2..395c0c0 100644 (file)
@@ -311,10 +311,11 @@ class t3lib_PageRenderer implements t3lib_Singleton {
 
        /*****************************************************/
        /*                                                   */
-       /*  Public Enablers                                  */
+       /*  Public Enablers / Disablers                      */
        /*                                                   */
        /*                                                   */
        /*****************************************************/
+
        /**
         * Enables MoveJsFromHeaderToFooter
         *
@@ -326,6 +327,16 @@ class t3lib_PageRenderer implements t3lib_Singleton {
        }
 
        /**
+        * Disables MoveJsFromHeaderToFooter
+        *
+        * @param void
+        * @return void
+        */
+       public function disableMoveJsFromHeaderToFooter() {
+               $this->moveJsFromHeaderToFooter = FALSE;
+       }
+
+       /**
         * Enables compression of javascript
         *
         * @param void
@@ -336,6 +347,16 @@ class t3lib_PageRenderer implements t3lib_Singleton {
        }
 
        /**
+        * Disables compression of javascript
+        *
+        * @param void
+        * @return void
+        */
+       public function disableCompressJavascript() {
+               $this->compressJavascript = FALSE;
+       }
+
+       /**
         * Enables compression of css
         *
         * @param void
@@ -346,6 +367,15 @@ class t3lib_PageRenderer implements t3lib_Singleton {
        }
 
        /**
+        * Disables compression of css
+        *
+        * @param void
+        * @return void
+        */
+       public function disableCompressCss() {
+               $this->compressCss = FALSE;
+       }
+
        /**
         * Enables concatenation of js/css files
         *
@@ -357,6 +387,16 @@ class t3lib_PageRenderer implements t3lib_Singleton {
        }
 
        /**
+        * Disables concatenation of js/css files
+        *
+        * @param void
+        * @return void
+        */
+       public function disableConcatenateFiles() {
+               $this->concatenateFiles = FALSE;
+       }
+
+       /**
         * Sets removal of all line breaks in template
         *
         * @param void
@@ -366,6 +406,30 @@ class t3lib_PageRenderer implements t3lib_Singleton {
                $this->removeLineBreaksFromTemplate = TRUE;
        }
 
+       /**
+        * Unsets removal of all line breaks in template
+        *
+        * @param void
+        * @return void
+        */
+       public function disableRemoveLineBreaksFromTemplate() {
+               $this->removeLineBreaksFromTemplate = FALSE;
+       }
+
+       /**
+        * Enables Debug Mode
+        * This is a shortcut to switch off all compress/concatenate features to enable easier debug
+        *
+        * @param void
+        * @return void
+        */
+       public function enableDebugMode() {
+               $this->compressJavascript = FALSE;
+               $this->compressCss = FALSE;
+               $this->concatenateFiles = FALSE;
+               $this->removeLineBreaksFromTemplate = FALSE;
+       }
+
        /*****************************************************/
        /*                                                   */
        /*  Public Getters                                   */