Index: trunk/phase3/includes/api/ApiQueryFilearchive.php |
— | — | @@ -95,14 +95,6 @@ |
96 | 96 | if ( isset( $params['prefix'] ) ) |
97 | 97 | $this->addWhere( 'fa_name' . $db->buildLike( $this->titlePartToKey( $params['prefix'] ), $db->anyString() ) ); |
98 | 98 | |
99 | | - if ( isset( $params['minsize'] ) ) { |
100 | | - $this->addWhere( 'fa_size>=' . intval( $params['minsize'] ) ); |
101 | | - } |
102 | | - |
103 | | - if ( isset( $params['maxsize'] ) ) { |
104 | | - $this->addWhere( 'fa_size<=' . intval( $params['maxsize'] ) ); |
105 | | - } |
106 | | - |
107 | 99 | $sha1 = false; |
108 | 100 | if ( isset( $params['sha1'] ) ) { |
109 | 101 | $sha1 = wfBaseConvert( $params['sha1'], 16, 36, 31 ); |
— | — | @@ -180,12 +172,6 @@ |
181 | 173 | return array ( |
182 | 174 | 'from' => null, |
183 | 175 | 'prefix' => null, |
184 | | - 'minsize' => array( |
185 | | - ApiBase::PARAM_TYPE => 'integer', |
186 | | - ), |
187 | | - 'maxsize' => array( |
188 | | - ApiBase::PARAM_TYPE => 'integer', |
189 | | - ), |
190 | 176 | 'limit' => array( |
191 | 177 | ApiBase::PARAM_DFLT => 10, |
192 | 178 | ApiBase::PARAM_TYPE => 'limit', |
— | — | @@ -225,8 +211,6 @@ |
226 | 212 | 'from' => 'The image title to start enumerating from', |
227 | 213 | 'prefix' => 'Search for all image titles that begin with this value', |
228 | 214 | 'dir' => 'The direction in which to list', |
229 | | - 'minsize' => 'Limit to images with at least this many bytes', |
230 | | - 'maxsize' => 'Limit to images with at most this many bytes', |
231 | 215 | 'limit' => 'How many total images to return', |
232 | 216 | 'sha1' => "SHA1 hash of image. Overrides {$this->getModulePrefix()}sha1base36", |
233 | 217 | 'sha1base36' => 'SHA1 hash of image in base 36 (used in MediaWiki)', |