[FOLLOWUP][TASK] Introduce getters for $GLOBALS in ext:setup 09/37309/2
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 27 Feb 2015 08:07:55 +0000 (09:07 +0100)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Fri, 27 Feb 2015 08:30:36 +0000 (09:30 +0100)
Resolves: #65372
Releases: master
Change-Id: I19d67cb8de220f25f74667bc39a5ca25c62c9500
Reviewed-on: http://review.typo3.org/37309
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/setup/Classes/Controller/SetupModuleController.php

index d2af6c7..7262d49 100644 (file)
@@ -689,7 +689,7 @@ class SetupModuleController {
                if ($this->simUser > 0) {
                        // Save old user...
                        $this->OLD_BE_USER = $this->getBackendUser();
-                       unset($this->getBackendUser());
+                       unset($GLOBALS['BE_USER']);
                        // Unset current
                        // New backend user object
                        $BE_USER = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Authentication\BackendUserAuthentication::class);
@@ -697,7 +697,7 @@ class SetupModuleController {
                        $BE_USER->fetchGroupData();
                        $BE_USER->backendSetUC();
                        // Must do this, because unsetting $BE_USER before apparently unsets the reference to the global variable by this name!
-                       $this->getBackendUser() = $BE_USER;
+                       $GLOBALS['BE_USER'] = $BE_USER;
                }
        }