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:
9162e12
)
Using the function Title::isSubpage instead.
author
Rotem Liss
<rotem@users.mediawiki.org>
Sat, 1 Sep 2007 17:39:28 +0000
(17:39 +0000)
committer
Rotem Liss
<rotem@users.mediawiki.org>
Sat, 1 Sep 2007 17:39:28 +0000
(17:39 +0000)
includes/WatchlistEditor.php
patch
|
blob
|
history
diff --git
a/includes/WatchlistEditor.php
b/includes/WatchlistEditor.php
index
439a4e5
..
5258204
100644
(file)
--- a/
includes/WatchlistEditor.php
+++ b/
includes/WatchlistEditor.php
@@
-414,7
+414,7
@@
class WatchlistEditor {
if( $title->exists() ) {
$tools[] = $skin->makeKnownLinkObj( $title, wfMsgHtml( 'history_short' ), 'action=history' );
}
- if( $title->getNamespace() == NS_USER &&
$title->getText() == $title->getBaseText
() ) {
+ if( $title->getNamespace() == NS_USER &&
!$title->isSubpage
() ) {
$tools[] = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Contributions' ), wfMsgHtml( 'contributions' ), 'target=' . $title->getPartialUrl() );
}
return '<li>'