From 605873cc92144c20cd4d73bb172c2c504d89dab1 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 2 Jan 2012 17:16:10 +0000 Subject: [PATCH] Use $wgUser instead of the User from the context in Article::view() and Article::showDiffPage() for consistency --- includes/Article.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); } } -- 2.20.1