r90440 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90439‎ | r90440 | r90441 >
Date:08:07, 20 June 2011
Author:ialex
Status:ok
Tags:
Comment:
Fix for r90406: giving an OutputPage object instead of an User object is not really a good idea
Modified paths:
  • /trunk/phase3/includes/Action.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Action.php
@@ -125,7 +125,7 @@
126126 * @return User
127127 */
128128 protected final function getUser() {
129 - return $this->getContext()->getOutput();
 129+ return $this->getContext()->getUser();
130130 }
131131
132132 /**
@@ -450,4 +450,4 @@
451451 }
452452 }
453453 }
454 -}
\ No newline at end of file
 454+}

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r90406Fix up a couple of uses of context->object instead of context->getObject(). F...demon17:38, 19 June 2011

Status & tagging log