* Add link to user contributions in normal watchlist edit mode
authorRaimond Spekking <raymond@users.mediawiki.org>
Fri, 31 Aug 2007 11:10:32 +0000 (11:10 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Fri, 31 Aug 2007 11:10:32 +0000 (11:10 +0000)
RELEASE-NOTES
includes/WatchlistEditor.php

index 9b1a467..46ecfd7 100644 (file)
@@ -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 ==
 
index cdc9f0e..e43289e 100644 (file)
@@ -411,8 +411,12 @@ class WatchlistEditor {
                if( $redirect )
                        $link = '<span class="watchlistredir">' . $link . '</span>';
                $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 '<li>'
                        . Xml::check( 'titles[]', false, array( 'value' => $title->getPrefixedText() ) )
                        . $link . ' (' . implode( ' | ', $tools ) . ')' . '</li>';