Index: trunk/phase3/includes/api/ApiQueryFilearchive.php |
— | — | @@ -95,16 +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 | | - $sha1 = false; |
100 | | - if ( isset( $params['sha1'] ) ) { |
101 | | - $sha1 = wfBaseConvert( $params['sha1'], 16, 36, 31 ); |
102 | | - } elseif ( isset( $params['sha1base36'] ) ) { |
103 | | - $sha1 = $params['sha1base36']; |
104 | | - } |
105 | | - if ( $sha1 ) { |
106 | | - $this->addWhere( 'fa_storage_key=' . $db->addQuotes( $sha1 ) ); |
107 | | - } |
108 | | - |
109 | 99 | $limit = $params['limit']; |
110 | 100 | $this->addOption( 'LIMIT', $limit + 1 ); |
111 | 101 | $this->addOption( 'ORDER BY', 'fa_name' . |
— | — | @@ -186,8 +176,6 @@ |
187 | 177 | 'descending' |
188 | 178 | ) |
189 | 179 | ), |
190 | | - 'sha1' => null, |
191 | | - 'sha1base36' => null, |
192 | 180 | 'prop' => array( |
193 | 181 | ApiBase::PARAM_DFLT => 'timestamp', |
194 | 182 | ApiBase::PARAM_ISMULTI => true, |
— | — | @@ -212,8 +200,6 @@ |
213 | 201 | 'prefix' => 'Search for all image titles that begin with this value', |
214 | 202 | 'dir' => 'The direction in which to list', |
215 | 203 | 'limit' => 'How many total images to return', |
216 | | - 'sha1' => "SHA1 hash of image. Overrides {$this->getModulePrefix()}sha1base36", |
217 | | - 'sha1base36' => 'SHA1 hash of image in base 36 (used in MediaWiki)', |
218 | 204 | 'prop' => array( |
219 | 205 | 'What image information to get:', |
220 | 206 | ' sha1 - Adds SHA-1 hash for the image', |