Followup r74234 flip parameters
authorSam Reed <reedy@users.mediawiki.org>
Mon, 4 Oct 2010 21:18:38 +0000 (21:18 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 4 Oct 2010 21:18:38 +0000 (21:18 +0000)
includes/api/ApiBase.php
maintenance/tests/phpunit/includes/api/ApiWatchTest.php

index 6d4ed2a..7d4c16b 100644 (file)
@@ -866,7 +866,7 @@ abstract class ApiBase {
         */
        private function warnOrDie( $msg, $enforceLimits = false ) {
                if ( $enforceLimits ) {
-                       $this->dieUsage( 'integeroutofrange', $msg );
+                       $this->dieUsage( $msg, 'integeroutofrange' );
                } else {
                        $this->setWarning( $msg );
                }
index 6525a8a..59223e1 100644 (file)
@@ -94,7 +94,6 @@ class ApiWatchTest extends ApiTestSetup {
                return $data;
        }
 
-
        /**
         * @depends testWatchEdit
         */