From 7241c48e61b95ddfee5816fa158e9f0ef1be62ad Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 16 Mar 2006 21:17:32 +0000 Subject: [PATCH] * 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.) --- RELEASE-NOTES | 2 ++ includes/Linker.php | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index e37bc0ca37..4e64a8b0ac 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Linker.php b/includes/Linker.php index b512c4b3f4..32b7cb476b 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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 ); } -- 2.20.1