[BUGFIX] Form Wizard does not respect backend debug mode 86/42886/2
authorOliver Hader <oliver@typo3.org>
Thu, 27 Aug 2015 11:23:12 +0000 (13:23 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 27 Aug 2015 12:30:53 +0000 (14:30 +0200)
Form Wizard does not respect backend debug mode in
$GLOBALS['TYPO3_CONF_VARS']['BE']['debug']. The hardcoded
compression and concatenation is removed by this change.

Resolves: #69353
Releases: master, 6.2
Change-Id: I78aa7f67a8c813fd0208e77b432829fceeb7aa6b
Reviewed-on: http://review.typo3.org/42886
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Sebastian Wagner <sebastian.wagner@tritum.de>
Tested-by: Sebastian Wagner <sebastian.wagner@tritum.de>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/form/Classes/View/Wizard/WizardView.php

index e55bf18..e4ca524 100644 (file)
@@ -59,9 +59,6 @@ class WizardView extends \TYPO3\CMS\Form\View\Wizard\AbstractWizardView {
                // Define the document template object
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->setModuleTemplate('EXT:form/Resources/Private/Templates/Wizard.html');
-               $this->getPageRenderer()->enableConcatenateFiles();
-               $this->getPageRenderer()->enableCompressCss();
-               $this->getPageRenderer()->enableCompressJavascript();
        }
 
        /**
@@ -211,11 +208,11 @@ class WizardView extends \TYPO3\CMS\Form\View\Wizard\AbstractWizardView {
                        'Viewport/Left/Form/PostProcessors/Redirect.js'
                );
                // Load ExtJS
-               $this->pageRenderer->loadExtJS();
+               $this->getPageRenderer()->loadExtJS();
                // Load the wizards javascript
                $baseUrl = ExtensionManagementUtility::extRelPath('form') . 'Resources/Public/JavaScript/Wizard/';
                foreach ($javascriptFiles as $javascriptFile) {
-                       $this->pageRenderer->addJsFile($baseUrl . $javascriptFile, 'text/javascript', $compress, FALSE);
+                       $this->getPageRenderer()->addJsFile($baseUrl . $javascriptFile, 'text/javascript', $compress, FALSE);
                }
        }
 
@@ -236,7 +233,7 @@ class WizardView extends \TYPO3\CMS\Form\View\Wizard\AbstractWizardView {
                $baseUrl = ExtensionManagementUtility::extRelPath('form') . 'Resources/Public/CSS/';
                // Load the wizards css
                foreach ($cssFiles as $cssFile) {
-                       $this->pageRenderer->addCssFile($baseUrl . $cssFile, 'stylesheet', 'all', '', $compress, FALSE);
+                       $this->getPageRenderer()->addCssFile($baseUrl . $cssFile, 'stylesheet', 'all', '', $compress, FALSE);
                }
        }
 
@@ -265,7 +262,7 @@ class WizardView extends \TYPO3\CMS\Form\View\Wizard\AbstractWizardView {
                $wizardLabels = $this->getLanguageService()->includeLLFile('EXT:form/Resources/Private/Language/locallang_wizard.xlf', FALSE, TRUE);
                $controllerLabels = $this->getLanguageService()->includeLLFile('EXT:form/Resources/Private/Language/locallang_controller.xlf', FALSE, TRUE);
                \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($controllerLabels, $wizardLabels);
-               $this->pageRenderer->addInlineLanguageLabelArray($controllerLabels['default']);
+               $this->getPageRenderer()->addInlineLanguageLabelArray($controllerLabels['default']);
        }
 
        /**