MediaWiki r12813 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r12812‎ | r12813 (on ViewVC)‎ | r12814 >
Date:23:08, 21 January 2006
Author:robchurch
Status:old
Tags:
Comment:
Add block link to Special:Contributions
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/SpecialContributions.php
@@ -224,7 +224,11 @@
225225 }
226226 $talk = $nt->getTalkPage();
227227 if( $talk ) {
228 - $ul .= ' (' . $sk->makeLinkObj( $talk, $wgLang->getNsText( NS_TALK ) ) . ')';
 228+ $ul .= ' (' . $sk->makeLinkObj( $talk, $wgLang->getNsText( NS_TALK ) );
 229+ if( $wgUser->isAllowed( 'block' ) ) {
 230+ $ul .= ' | ' . $sk->makeLinkObj( Title::makeTitle( NS_SPECIAL, 'Blockip/' . $nt->getText() ), wfMsgHtml( 'blocklink' ) );
 231+ }
 232+ $ul .= ')';
229233 }
230234
231235 if ($target == 'newbies') {
Index: trunk/phase3/RELEASE-NOTES
@@ -329,6 +329,7 @@
330330 * Move parentheses out of <a> link in Special:Contributions
331331 * (bug 3192): properly check 'limit' parameter on Special:Contributions
332332 * (bug 3187) watchlist text refer to unexistent "Stop watching" action
 333+* Add block link to Special:Contributions
333334
334335 Misc.:
335336 * PHP 4.1 compatibility fix: don't use new_link parameter to mysql_connect

Status & tagging log

  • 01:58, 13 October 2010 ^demon (Talk | contribs) changed the status of r12813 [removed: new added: old]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox