From 71f2dd351697c23a91c85b01af0be7290698e5da Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sat, 1 Sep 2007 17:39:28 +0000 Subject: [PATCH] Using the function Title::isSubpage instead. --- includes/WatchlistEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index 439a4e5c09..525820476c 100644 --- 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 '
  • ' -- 2.20.1