[BUGFIX] Enable add markers in LoginController signal 28/23728/5
authorSebastian Fischer <typo3@evoweb.de>
Tue, 10 Sep 2013 13:52:36 +0000 (15:52 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 1 Oct 2013 14:19:17 +0000 (16:19 +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.

Resolves: #51892
Releases: 6.2
Change-Id: Id6f92195608ca8684fdbfe911b193789055d6775
Reviewed-on: https://review.typo3.org/23728
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
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];
        }
 
        /**