From: Alexandre Emsenhuber Date: Mon, 2 Jan 2012 17:16:10 +0000 (+0000) Subject: Use $wgUser instead of the User from the context in Article::view() and Article:... X-Git-Tag: 1.31.0-rc.0~25611 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=605873cc92144c20cd4d73bb172c2c504d89dab1;p=lhc%2Fweb%2Fwiklou.git Use $wgUser instead of the User from the context in Article::view() and Article::showDiffPage() for consistency --- diff --git a/includes/Article.php b/includes/Article.php index 7403fd9106..25b0d92ed9 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -458,7 +458,7 @@ class Article extends Page { wfDebug( __METHOD__ . ": done file cache\n" ); # tell wgOut that output is taken care of $wgOut->disable(); - $this->mPage->doViewUpdates( $this->getContext()->getUser() ); + $this->mPage->doViewUpdates( $wgUser ); wfProfileOut( __METHOD__ ); return; @@ -630,7 +630,7 @@ class Article extends Page { $wgOut->setFollowPolicy( $policy['follow'] ); $this->showViewFooter(); - $this->mPage->doViewUpdates( $this->getContext()->getUser() ); + $this->mPage->doViewUpdates( $wgUser ); wfProfileOut( __METHOD__ ); } @@ -669,7 +669,7 @@ class Article extends Page { if ( $diff == 0 || $diff == $this->mPage->getLatest() ) { # Run view updates for current revision only - $this->mPage->doViewUpdates( $this->getContext()->getUser() ); + $this->mPage->doViewUpdates( $wgUser ); } }