From: Brion Vibber Date: Thu, 16 Mar 2006 21:17:32 +0000 (+0000) Subject: * Add a clickable contribs link in user tool links (rc, watchlist, diff view) X-Git-Tag: 1.6.0~197 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=7241c48e61b95ddfee5816fa158e9f0ef1be62ad;p=lhc%2Fweb%2Fwiklou.git * 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.) --- 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 ); }