From d4754960a1d3b69cb9b7c44082b478d9e3f5d249 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sat, 21 Jan 2006 23:08:34 +0000 Subject: [PATCH] Add block link to Special:Contributions --- RELEASE-NOTES | 1 + includes/SpecialContributions.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 45f0966452..e657ec5f09 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -329,6 +329,7 @@ Special Pages: * Move parentheses out of link in Special:Contributions * (bug 3192): properly check 'limit' parameter on Special:Contributions * (bug 3187) watchlist text refer to unexistent "Stop watching" action +* Add block link to Special:Contributions Misc.: * PHP 4.1 compatibility fix: don't use new_link parameter to mysql_connect diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index e34d1036a6..518fee6fbc 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -224,7 +224,11 @@ function wfSpecialContributions( $par = null ) { } $talk = $nt->getTalkPage(); if( $talk ) { - $ul .= ' (' . $sk->makeLinkObj( $talk, $wgLang->getNsText( NS_TALK ) ) . ')'; + $ul .= ' (' . $sk->makeLinkObj( $talk, $wgLang->getNsText( NS_TALK ) ); + if( $wgUser->isAllowed( 'block' ) ) { + $ul .= ' | ' . $sk->makeLinkObj( Title::makeTitle( NS_SPECIAL, 'Blockip/' . $nt->getText() ), wfMsgHtml( 'blocklink' ) ); + } + $ul .= ')'; } if ($target == 'newbies') { -- 2.20.1