dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a1b7a1
)
Fix use of mUser noted by c15657 on r85250.
author
Daniel Friesen
<dantman@users.mediawiki.org>
Sun, 3 Apr 2011 23:38:44 +0000
(23:38 +0000)
committer
Daniel Friesen
<dantman@users.mediawiki.org>
Sun, 3 Apr 2011 23:38:44 +0000
(23:38 +0000)
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
3146eb8
..
e326339
100644
(file)
--- a/
includes/Skin.php
+++ b/
includes/Skin.php
@@
-252,6
+252,14
@@
abstract class Skin {
return $this->getContext()->getTitle();
}
return $this->getContext()->getTitle();
}
+ /** Get the user
+ *
+ * @return User
+ */
+ public function getUser() {
+ return $this->getContext()->getUser();
+ }
+
/**
* Set the "relevant" title
* @see self::getRelevantTitle()
/**
* Set the "relevant" title
* @see self::getRelevantTitle()
@@
-1363,7
+1371,7
@@
abstract class Skin {
$ntl = '';
if ( count( $newtalks ) == 1 && $newtalks[0]['wiki'] === wfWikiID() ) {
$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() ) ) {
$userTalkTitle = $userTitle->getTalkPage();
if ( !$userTalkTitle->equals( $out->getTitle() ) ) {