From 72f3408d4998db3804ab9c747318314c239e486c Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Fri, 31 Aug 2007 11:10:32 +0000 Subject: [PATCH] * Add link to user contributions in normal watchlist edit mode --- RELEASE-NOTES | 1 + includes/WatchlistEditor.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9b1a467994..46ecfd7ddf 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -194,6 +194,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN text for a non-existent page * (bug 11022) Use a more accurate page title for Special:Whatlinkshere and Special:Recentchangeslinked +* Add link to user contributions in normal watchlist edit mode == Bugfixes since 1.10 == diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index cdc9f0ee33..e43289e67b 100644 --- a/includes/WatchlistEditor.php +++ b/includes/WatchlistEditor.php @@ -411,8 +411,12 @@ class WatchlistEditor { if( $redirect ) $link = '' . $link . ''; $tools[] = $skin->makeLinkObj( $title->getTalkPage(), wfMsgHtml( 'talkpagelinktext' ) ); - if( $title->exists() ) + if( $title->exists() ) { $tools[] = $skin->makeKnownLinkObj( $title, wfMsgHtml( 'history_short' ), 'action=history' ); + } + if( $title->getNamespace() == NS_USER ) { + $tools[] = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Contributions' ), wfMsgHtml( 'contributions' ), 'target=' . $title->getPartialUrl() ); + } return '
  • ' . Xml::check( 'titles[]', false, array( 'value' => $title->getPrefixedText() ) ) . $link . ' (' . implode( ' | ', $tools ) . ')' . '
  • '; -- 2.20.1