Followup to r66168
authorSam Reed <reedy@users.mediawiki.org>
Tue, 11 May 2010 21:17:23 +0000 (21:17 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 11 May 2010 21:17:23 +0000 (21:17 +0000)
sha1 overrides sha1base36

Update ApiQueryAllimages similarily, seeing as it doesn't state it either

includes/api/ApiQueryAllimages.php
includes/api/ApiQueryFilearchive.php

index 8e6774e..af91959 100644 (file)
@@ -185,7 +185,7 @@ class ApiQueryAllimages extends ApiQueryGeneratorBase {
                        'minsize' => 'Limit to images with at least this many bytes',
                        'maxsize' => 'Limit to images with at most this many bytes',
                        'limit' => 'How many total images to return.',
-                       'sha1' => 'SHA1 hash of image',
+                       'sha1' => 'SHA1 hash of image. Overrides sha1base36',
                        'sha1base36' => 'SHA1 hash of image in base 36 (used in MediaWiki)',
                        'prop' => 'Which properties to get',
                );
index f50c035..d1ec13b 100644 (file)
@@ -73,15 +73,13 @@ class ApiQueryFilearchive extends ApiQueryBase {
                $this->addFieldsIf( 'fa_size', $fld_size );
 
                if ( $fld_dimensions ) {
-                       $this->addFields( 'fa_height' );
-                       $this->addFields( 'fa_width' );
+                       $this->addFields( array( 'fa_height', 'fa_width' ) );
                }
 
                $this->addFieldsIf( 'fa_description', $fld_description );
 
                if ( $fld_mime ) {
-                       $this->addFields( 'fa_major_mime' );
-                       $this->addFields( 'fa_minor_mime' );
+                       $this->addFields( array( 'fa_major_mime', 'fa_minor_mime' ) );
                }
 
                $this->addFieldsIf( 'fa_metadata', $fld_metadata );
@@ -219,7 +217,7 @@ class ApiQueryFilearchive extends ApiQueryBase {
                        'minsize' => 'Limit to images with at least this many bytes',
                        'maxsize' => 'Limit to images with at most this many bytes',
                        'limit' => 'How many total images to return.',
-                       'sha1' => 'SHA1 hash of image',
+                       'sha1' => 'SHA1 hash of image. Overrides sha1base36',
                        'sha1base36' => 'SHA1 hash of image in base 36 (used in MediaWiki)',
                        'prop' => 'Which properties to get',
                );