From: Daniel Friesen Date: Sun, 3 Apr 2011 23:38:44 +0000 (+0000) Subject: Fix use of mUser noted by c15657 on r85250. X-Git-Tag: 1.31.0-rc.0~31042 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=ea8bfcd4967317c8149ffb1ed696384d2f84129d;p=lhc%2Fweb%2Fwiklou.git Fix use of mUser noted by c15657 on r85250. --- 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() ) ) {