From 63d4548886ba068cd768e1ba7b9526f1c419d98d Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 3 Sep 2007 18:21:53 +0000 Subject: [PATCH] Re-revert of r25349 per Brion on http://lists.wikimedia.org/pipermail/wikitech-l/2007-September/033207.html --- RELEASE-NOTES | 1 + includes/WatchlistEditor.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8cfa4a0486..1862b1da37 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 * (bug 9426) Add 'newsectionheaderdefaultlevel' message to allow modification of the heading formatting for new sections when section=new argument is supplied diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index cdc9f0ee33..e03225a301 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 && !$title->isSubpage() ) { + $tools[] = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Contributions', $title->getText() ), wfMsgHtml( 'contributions' ) ); + } return '
  • ' . Xml::check( 'titles[]', false, array( 'value' => $title->getPrefixedText() ) ) . $link . ' (' . implode( ' | ', $tools ) . ')' . '
  • '; -- 2.20.1