[BUGFIX] Enable add markers in LoginController signal 28/24228/4
authorSebastian Fischer <typo3@evoweb.de>
Tue, 10 Sep 2013 13:52:36 +0000 (15:52 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 6 Oct 2013 18:06:43 +0000 (20:06 +0200)
Currently its not possible to have signales handle parameter of slots
as a reference. Because of this its not possible to add marker in the
emit. With this patch the parameter containing the markers is taken
after process and then the markers get handed over to the reference
again.

Change-Id: I00dd75c88e4cabb4a1e5a704e6d4e9a39bef1c7b
Resolves: #51892
Releases: 6.2
Reviewed-on: https://review.typo3.org/24228
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/Controller/LoginController.php

index 0810c77..46f4a8d 100644 (file)
@@ -728,7 +728,8 @@ class LoginController {
         * @return void
         */
        protected function emitRenderLoginFormSignal(array &$markers) {
-               $this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Backend\\Controller\\LoginController', self::SIGNAL_RenderLoginForm, array($this, $markers));
+               $signalArguments = $this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Backend\\Controller\\LoginController', self::SIGNAL_RenderLoginForm, array($this, $markers));
+               $markers = $signalArguments[1];
        }
 
        /**