r108806 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108805‎ | r108806 | r108807 >
Date:13:28, 13 January 2012
Author:ialex
Status:ok (Comments)
Tags:
Comment:
Per Aaron, fix for r107776: correct count() check
Modified paths:
  • /trunk/phase3/includes/specials/SpecialMovepage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialMovepage.php
@@ -195,7 +195,7 @@
196196 $action_desc = $this->msg( 'action-move' )->plain();
197197 $out->addWikiMsg( 'permissionserrorstext-withaction', count( $err ), $action_desc );
198198
199 - if ( count( $err ) ) {
 199+ if ( count( $err ) == 1 ) {
200200 $errMsg = $err[0];
201201 $errMsgName = array_shift( $errMsg );
202202 if ( $errMsgName == 'hookaborted' ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107776* Display all errors in showForm() instead of only the first one...ialex15:31, 1 January 2012

Comments

#Comment by Nikerabbit (talk | contribs)   14:29, 13 January 2012

=

Status & tagging log