r83973 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83972‎ | r83973 | r83974 >
Date:22:26, 14 March 2011
Author:happy-melon
Status:ok
Tags:
Comment:
Follow-up r83909: fix error on TWN
Modified paths:
  • /trunk/phase3/includes/specials/SpecialBlockList.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialBlockList.php
@@ -265,6 +265,7 @@
266266 'blocklist-nousertalk',
267267 'unblocklink',
268268 'change-blocklink',
 269+ 'infiniteblock',
269270 );
270271 $msg = array_combine( $msg, array_map( 'wfMessage', $msg ) );
271272 }
@@ -300,7 +301,9 @@
301302 break;
302303
303304 case 'ipb_expiry':
304 - $formatted = $wgLang->timeanddate( $value );
 305+ $formatted = $value == Block::infinity()
 306+ ? $msg['infiniteblock']
 307+ : $wgLang->timeanddate( $value );
305308 if( $wgUser->isAllowed( 'block' ) ){
306309 if( $row->ipb_auto ){
307310 $links[] = $sk->linkKnown(

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83909Complete the trinity of blocking frontend interfaces by rewriting SpecialIpbl...happy-melon16:09, 14 March 2011

Status & tagging log