* Add a clickable contribs link in user tool links (rc, watchlist, diff view)
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 16 Mar 2006 21:17:32 +0000 (21:17 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 16 Mar 2006 21:17:32 +0000 (21:17 +0000)
  to see how people like it. (There was one in the old hacked-up diff view.)

RELEASE-NOTES
includes/Linker.php

index e37bc0c..4e64a8b 100644 (file)
@@ -690,6 +690,8 @@ fully support the editing toolbar, but was found to be too confusing.
   incomplete, and the flags are not preserved across page deletion/undeletion.
   To try it; add the 'deleterevision' permission to a privileged group.
 * (bug 5270) Fix broken linktrail for br, cv, fr, hr, nn, oc, ta, wa
+* Add a clickable contribs link in user tool links (rc, watchlist, diff view)
+  to see how people like it. (There was one in the old hacked-up diff view.)
 
 
 === Caveats ===
index b512c4b..32b7cb4 100644 (file)
@@ -770,6 +770,11 @@ class Linker {
                if( $talkable ) {
                        $items[] = $this->userTalkLink( $userId, $userText );
                }
+               if( $userId ) {
+                       $contribsPage = Title::makeTitle( NS_SPECIAL, 'Contributions' );
+                       $items[] = $this->makeKnownLinkObj( $contribsPage,
+                               wfMsgHtml( 'contribslink' ), 'target=' . urlencode( $userText ) );
+               }
                if( $blockable && $wgUser->isAllowed( 'block' ) ) {
                        $items[] = $this->blockLink( $userId, $userText );
                }