From: Happy-melon Date: Tue, 22 Mar 2011 17:26:32 +0000 (+0000) Subject: Fix "$1 is already blocked" parameter-not-passed-to-message error X-Git-Tag: 1.31.0-rc.0~31247 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=e467c6a913df334a1d693867c994689afe729868;p=lhc%2Fweb%2Fwiklou.git Fix "$1 is already blocked" parameter-not-passed-to-message error --- diff --git a/includes/specials/SpecialBlock.php b/includes/specials/SpecialBlock.php index 504efde970..92658e03eb 100644 --- a/includes/specials/SpecialBlock.php +++ b/includes/specials/SpecialBlock.php @@ -557,7 +557,7 @@ class SpecialBlock extends SpecialPage { if( !$status ) { # Show form unless the user is already aware of this... if( !$data['AlreadyBlocked'] ) { - return array( array( 'ipb_already_blocked', $data['Target'] ) ); + return array( array( 'ipb_already_blocked', $block->getTarget() ) ); # Otherwise, try to update the block... } else { # This returns direct blocks before autoblocks/rangeblocks, since we should @@ -565,7 +565,7 @@ class SpecialBlock extends SpecialPage { $currentBlock = Block::newFromTarget( $target ); if( $block->equals( $currentBlock ) ) { - return array( 'ipb_already_blocked' ); + return array( array( 'ipb_already_blocked', $block->getTarget() ) ); } # If the name was hidden and the blocking user cannot hide