From ea8bfcd4967317c8149ffb1ed696384d2f84129d Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Sun, 3 Apr 2011 23:38:44 +0000 Subject: [PATCH] Fix use of mUser noted by c15657 on r85250. --- includes/Skin.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/includes/Skin.php b/includes/Skin.php index 3146eb8680..e326339224 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -252,6 +252,14 @@ abstract class Skin { return $this->getContext()->getTitle(); } + /** Get the user + * + * @return User + */ + public function getUser() { + return $this->getContext()->getUser(); + } + /** * Set the "relevant" title * @see self::getRelevantTitle() @@ -1363,7 +1371,7 @@ abstract class Skin { $ntl = ''; if ( count( $newtalks ) == 1 && $newtalks[0]['wiki'] === wfWikiID() ) { - $userTitle = $this->mUser->getUserPage(); + $userTitle = $this->getUser()->getUserPage(); $userTalkTitle = $userTitle->getTalkPage(); if ( !$userTalkTitle->equals( $out->getTitle() ) ) { -- 2.20.1