JavaScript minification is enabled in FE by default (config.minifyJS=1)
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Wed, 26 Sep 2007 07:38:06 +0000 (07:38 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Wed, 26 Sep 2007 07:38:06 +0000 (07:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2525 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index d3e2310..96af714 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-09-26     Dmitry Dulepov  <dmitry@typo3.org>
+
+       * JavaScript minification is enabled in FE by default (config.minifyJS=1)
+
 2007-09-25  Oliver Hader  <oh@inpublica.de>
 
        * (tweak) Created new directory for Services_JSON typo3/contrib/json/ and moved file from typo3/contrib/json.php to typo3/contrib/json/json.php
index eb39175..cf4cfe7 100755 (executable)
 
                        // If cookie is set, see what to do:
                if ($_COOKIE['ADMCMD_prev'])    {
-                       
+
                                // If no input code is given by GET method, lets look it up in a cookie (for workspace previews not only tied to the page) and update the cookie time:
                        if (!$inputCode)        {
                                $inputCode = $_COOKIE['ADMCMD_prev'];
                                        $previewConfig = unserialize($previewData['config']);
 
                                        if ($previewConfig['fullWorkspace']) {  // For full workspace preview we only ADD a get variable to set the preview of the workspace - so all other Get vars are accepted. Hope this is not a security problem. Still posting is not allowed and even if a backend user get initialized it shouldn't lead to situations where users can use those credentials.
-                                       
+
                                                        // Set the workspace preview value:
                                                t3lib_div::_GETset($previewConfig['fullWorkspace'],'ADMCMD_previewWS');
-                                               
+
                                                        // If ADMCMD_prev is set the $inputCode value cannot come from a cookie and we set that cookie here. Next time it will be found from the cookie if ADMCMD_prev is not set again...
                                                if (t3lib_div::_GP('ADMCMD_prev'))      {
                                                        SetCookie('ADMCMD_prev', t3lib_div::_GP('ADMCMD_prev'), time()+$cookieTTL);     // Lifetime is 1 hour, does it matter much? Requires the user to click the link from their email again if it expires.
                                                $this->setSimulReplacementChar();
                                        }
 
-                                               // Set default values for removeDefaultJS and inlineStyle2TempFile so CSS and JS are externalized if compatversion is higher than 4.0
-                                       if (!isset($this->config['config']['removeDefaultJS']) && t3lib_div::compat_version('4.0'))     {
-                                               $this->config['config']['removeDefaultJS'] = 'external';
-                                       }
-                                       if (!isset($this->config['config']['inlineStyle2TempFile']) && t3lib_div::compat_version('4.0'))        {
-                                               $this->config['config']['inlineStyle2TempFile'] = 1;
+                                               // Set default values for removeDefaultJS, inlineStyle2TempFile and minifyJS so CSS and JS are externalized/minified if compatversion is higher than 4.0
+                                       if (t3lib_div::compat_version('4.0')) {
+                                               if (!isset($this->config['config']['removeDefaultJS'])) {
+                                                       $this->config['config']['removeDefaultJS'] = 'external';
+                                               }
+                                               if (!isset($this->config['config']['inlineStyle2TempFile'])) {
+                                                       $this->config['config']['inlineStyle2TempFile'] = 1;
+                                               }
+                                               if (!isset($this->config['config']['minifyJS'])) {
+                                                       $this->config['config']['minifyJS'] = 1;
+                                               }
                                        }
 
                                                        // Processing for the config_array: