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:
882297c
)
Revert r77760, broken, and do what it intended correctly with strtok().
author
Roan Kattouw
<catrope@users.mediawiki.org>
Sun, 5 Dec 2010 10:30:04 +0000
(10:30 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Sun, 5 Dec 2010 10:30:04 +0000
(10:30 +0000)
includes/SkinTemplate.php
patch
|
blob
|
history
diff --git
a/includes/SkinTemplate.php
b/includes/SkinTemplate.php
index
1c68ec6
..
7f20f66
100644
(file)
--- a/
includes/SkinTemplate.php
+++ b/
includes/SkinTemplate.php
@@
-980,7
+980,7
@@
class SkinTemplate extends Skin {
}
if( $this->mTitle->getNamespace() == NS_USER || $this->mTitle->getNamespace() == NS_USER_TALK ) {
- $rootUser =
explode( '/', $this->mTitle->getText(), 1
);
+ $rootUser =
strtok( $this->mTitle->getText(), '/'
);
$id = User::idFromName( $rootUser );
$ip = User::isIP( $rootUser );
} else {