[TASK] Enable session watcher in debug mode 15/39215/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Sat, 2 May 2015 20:07:06 +0000 (22:07 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 3 May 2015 10:25:25 +0000 (12:25 +0200)
Enable the session watcher when debugging is enabled
in the backend, as the session still times out anyway.

Resolves: #66761
Releases: master
Change-Id: I270c5745e0c1bf7f31768fd1818e9a9593ea70b7
Reviewed-on: http://review.typo3.org/39215
Reviewed-by: Frank N├Ągler <typo3@naegler.net>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Controller/BackendController.php

index b0c9cef..d34bf19 100644 (file)
@@ -125,12 +125,10 @@ class BackendController {
                        'viewportConfiguration' => 'sysext/backend/Resources/Public/JavaScript/extjs/viewportConfiguration.js',
                        'util' => 'sysext/backend/Resources/Public/JavaScript/util.js'
                );
-               if (!$this->debug) {
-                       $this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/LoginRefresh', 'function(LoginRefresh) {
-                               LoginRefresh.setLoginFramesetUrl(' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('login_frameset')) . ');
-                               LoginRefresh.setLogoutUrl(' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('logout')) . ');
-                       }');
-               }
+               $this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/LoginRefresh', 'function(LoginRefresh) {
+                       LoginRefresh.setLoginFramesetUrl(' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('login_frameset')) . ');
+                       LoginRefresh.setLogoutUrl(' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('logout')) . ');
+               }');
 
                // load Notification functionality
                $this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/Notification');