Index: trunk/phase3/includes/api/ApiUserrights.php |
— | — | @@ -122,9 +122,7 @@ |
123 | 123 | } |
124 | 124 | |
125 | 125 | public function getPossibleErrors() { |
126 | | - return array_merge( parent::getPossibleErrors(), array( |
127 | | - array( 'missingparam', 'user' ), |
128 | | - ) ); |
| 126 | + return parent::getPossibleErrors(); |
129 | 127 | } |
130 | 128 | |
131 | 129 | public function getTokenSalt() { |
Index: trunk/phase3/includes/api/ApiParamInfo.php |
— | — | @@ -119,11 +119,10 @@ |
120 | 120 | if ( isset( $p[ApiBase::PARAM_DEPRECATED] ) && $p[ApiBase::PARAM_DEPRECATED] ) { |
121 | 121 | $a['deprecated'] = ''; |
122 | 122 | } |
123 | | - |
124 | 123 | if ( isset( $p[ApiBase::PARAM_REQUIRED] ) && $p[ApiBase::PARAM_REQUIRED] ) { |
125 | 124 | $a['required'] = ''; |
126 | 125 | } |
127 | | - |
| 126 | + |
128 | 127 | if ( !is_array( $p ) ) { |
129 | 128 | if ( is_bool( $p ) ) { |
130 | 129 | $a['type'] = 'bool'; |