r45945 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45944‎ | r45945 | r45946 >
Date:23:58, 20 January 2009
Author:demon
Status:ok
Tags:
Comment:
Code style tweak.
Modified paths:
  • /trunk/phase3/includes/api/ApiDelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiDelete.php
@@ -79,8 +79,7 @@
8080 $this->dieUsageMsg(current($retval));
8181 } else {
8282 $articleObj = new Article($titleObj);
83 - $bigHistory = $articleObj->isBigDeletion();
84 - if( $bigHistory && !$wgUser->isAllowed( 'bigdelete' ) ) {
 83+ if( $articleObj->isBigDeletion() && !$wgUser->isAllowed( 'bigdelete' ) ) {
8584 global $wgDeleteRevisionsLimit;
8685 $this->dieUsageMsg(array('delete-toobig', $wgDeleteRevisionsLimit));
8786 }

Status & tagging log