From 9162e12da852858653bd51a003822f3362db9a9f Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sat, 1 Sep 2007 17:35:58 +0000 Subject: [PATCH] Don't show contributions link to user subpages in the watchlist editor. --- includes/WatchlistEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index e43289e67b..439a4e5c09 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 ) { + if( $title->getNamespace() == NS_USER && $title->getText() == $title->getBaseText() ) { $tools[] = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Contributions' ), wfMsgHtml( 'contributions' ), 'target=' . $title->getPartialUrl() ); } return '
  • ' -- 2.20.1