Fix for r90406: giving an OutputPage object instead of an User object is not really...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 20 Jun 2011 08:07:50 +0000 (08:07 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 20 Jun 2011 08:07:50 +0000 (08:07 +0000)
includes/Action.php

index af96e54..5eff68c 100644 (file)
@@ -125,7 +125,7 @@ abstract class Action {
         * @return User
         */
        protected final function getUser() {
-               return $this->getContext()->getOutput();
+               return $this->getContext()->getUser();
        }
 
        /**
@@ -450,4 +450,4 @@ abstract class FormlessAction extends Action {
                        }
                }
        }
-}
\ No newline at end of file
+}