[TASK] Rename and deprecate config.minifyJS / config.minifyCSS
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tslib / class.tslib_fe.php
index fef8aff..f6ca213 100644 (file)
                                                if (!isset($this->config['config']['inlineStyle2TempFile'])) {
                                                        $this->config['config']['inlineStyle2TempFile'] = 1;
                                                }
-                                               if (!isset($this->config['config']['minifyJS'])) {
-                                                       $this->config['config']['minifyJS'] = 1;
+                                               if (isset($this->config['config']['minifyJS'])) {
+                                                       $this->logDeprecatedTyposcript('config.minifyJS = 1', 'It will be removed in TYPO3 4.8. Use config.compressJs instead.');
+                                                       if (!isset($this->config['config']['compressJs'])) {
+                                                               $this->config['config']['compressJs'] = $this->config['config']['minifyJS'];
+                                                       }
+                                               }
+                                               if (!isset($this->config['config']['compressJs'])) {
+                                                       $this->config['config']['compressJs'] = 1;
                                                }
                                        }