From: Alexandre Emsenhuber Date: Mon, 20 Jun 2011 08:07:50 +0000 (+0000) Subject: Fix for r90406: giving an OutputPage object instead of an User object is not really... X-Git-Tag: 1.31.0-rc.0~29401 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=b3c4ad216943063a372e1ada721c1a140fc2ba5a;p=lhc%2Fweb%2Fwiklou.git Fix for r90406: giving an OutputPage object instead of an User object is not really a good idea --- diff --git a/includes/Action.php b/includes/Action.php index af96e5433b..5eff68cfd0 100644 --- a/includes/Action.php +++ b/includes/Action.php @@ -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 +}