Index: trunk/extensions/Translate/api/ApiQueryMessageCollection.php |
— | — | @@ -117,19 +117,10 @@ |
118 | 118 | } |
119 | 119 | |
120 | 120 | public function getAllowedParams() { |
121 | | - |
122 | | - // Ugly code for BC <= 1.16 |
123 | | - $class = new ReflectionClass( 'ApiBase' ); |
124 | | - if ( $class->hasConstant( 'PARAM_REQUIRED' ) ) { |
125 | | - $required = ApiBase::PARAM_REQUIRED; |
126 | | - } else { |
127 | | - $required = 8; |
128 | | - } |
129 | | - |
130 | 121 | return array( |
131 | 122 | 'group' => array( |
132 | 123 | ApiBase::PARAM_TYPE => array_keys( MessageGroups::getAllGroups() ), |
133 | | - $required => true, |
| 124 | + ApiBase::PARAM_REQUIRED => true; |
134 | 125 | ), |
135 | 126 | 'language' => array( |
136 | 127 | ApiBase::PARAM_TYPE => 'string', |