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:
55a52d5
)
Use hasSubjectNamespace in Skin.php instead of namespace tests.
author
Daniel Friesen
<pub-github@nadir-seen-fire.com>
Thu, 30 Aug 2012 20:05:58 +0000
(13:05 -0700)
committer
Antoine Musso
<hashar@free.fr>
Mon, 1 Oct 2012 18:53:40 +0000
(20:53 +0200)
Change-Id: I11c5657de868a99429d400e0edb05707ec6069fb
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
968f215
..
9bee8a2
100644
(file)
--- a/
includes/Skin.php
+++ b/
includes/Skin.php
@@
-290,8
+290,8
@@
abstract class Skin extends ContextSource {
return $this->mRelevantUser;
}
$title = $this->getRelevantTitle();
- if( $title->
getNamespace() == NS_USER || $title->getNamespace() == NS_USER_TALK
) {
- $rootUser =
strtok( $title->getText(), '/'
);
+ if( $title->
hasSubjectNamespace( NS_USER )
) {
+ $rootUser =
$title->getRootText(
);
if ( User::isIP( $rootUser ) ) {
$this->mRelevantUser = User::newFromName( $rootUser, false );
} else {