r45954 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45953‎ | r45954 | r45955 >
Date:09:21, 21 January 2009
Author:catrope
Status:ok
Tags:
Comment:
Fix indentation for r45944 and use consistent code style
Modified paths:
  • /trunk/phase3/includes/api/ApiDelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiDelete.php
@@ -79,10 +79,10 @@
8080 $this->dieUsageMsg(current($retval));
8181 } else {
8282 $articleObj = new Article($titleObj);
83 - if( $articleObj->isBigDeletion() && !$wgUser->isAllowed( 'bigdelete' ) ) {
84 - global $wgDeleteRevisionsLimit;
85 - $this->dieUsageMsg(array('delete-toobig', $wgDeleteRevisionsLimit));
86 - }
 83+ if( $articleObj->isBigDeletion() && !$wgUser->isAllowed( 'bigdelete' ) ) {
 84+ global $wgDeleteRevisionsLimit;
 85+ $this->dieUsageMsg(array('delete-toobig', $wgDeleteRevisionsLimit));
 86+ }
8787 $retval = self::delete($articleObj, $params['token'], $reason);
8888
8989 if(count($retval))

Follow-up revisions

RevisionCommit summaryAuthorDate
r45955Followup to r45954: it helps to save before committingcatrope09:22, 21 January 2009

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r45944Make API action=delete respect $wgDeleteRevisionsLimitmrzman23:37, 20 January 2009

Status & tagging log