Remove error from ApiUserrights getPossibleErrors, it doesn't explicitally throw...
authorSam Reed <reedy@users.mediawiki.org>
Fri, 1 Oct 2010 19:37:38 +0000 (19:37 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 1 Oct 2010 19:37:38 +0000 (19:37 +0000)
Remove trailing whitespace

includes/api/ApiParamInfo.php
includes/api/ApiUserrights.php

index 801ea06..450191e 100644 (file)
@@ -119,11 +119,10 @@ class ApiParamInfo extends ApiBase {
                        if ( isset( $p[ApiBase::PARAM_DEPRECATED] ) && $p[ApiBase::PARAM_DEPRECATED] ) {
                                $a['deprecated'] = '';
                        }
-                       
                        if ( isset( $p[ApiBase::PARAM_REQUIRED] ) && $p[ApiBase::PARAM_REQUIRED] ) {
                                $a['required'] = '';
                        }
-                       
+
                        if ( !is_array( $p ) ) {
                                if ( is_bool( $p ) ) {
                                        $a['type'] = 'bool';
index 5f253ce..2649f9d 100644 (file)
@@ -122,9 +122,7 @@ class ApiUserrights extends ApiBase {
        }
 
        public function getPossibleErrors() {
-               return array_merge( parent::getPossibleErrors(), array(
-                       array( 'missingparam', 'user' ),
-               ) );
+               return parent::getPossibleErrors();
        }
 
        public function getTokenSalt() {