r44897 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44896‎ | r44897 | r44898 >
Date:12:07, 22 December 2008
Author:raymond
Status:ok
Tags:
Comment:
Fix PHP Notice: Undefined variable: toolLinks in /var/www/w/includes/specials/SpecialIpblocklist.php on line 451
Thanks to Siebrand
Modified paths:
  • /trunk/phase3/includes/specials/SpecialIpblocklist.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialIpblocklist.php
@@ -424,6 +424,7 @@
425425
426426 $unblocklink = '';
427427 $changeblocklink = '';
 428+ $toolLinks = '';
428429 if ( $wgUser->isAllowed( 'block' ) ) {
429430 $unblocklink = $sk->link( SpecialPage::getTitleFor( 'Ipblocklist' ),
430431 $msg['unblocklink'],
@@ -438,7 +439,7 @@
439440 $msg['change-blocklink'],
440441 array(), array(), 'known' );
441442 }
442 - $toolLinks = "($unblocklink$changeblocklink)";
 443+ $toolLinks = "($unblocklink$changeblocklink)";
443444 }
444445
445446 $comment = $sk->commentBlock( $block->mReason );

Status & tagging log