From 1061d519f8d2f8abc9d6bbd9410edfafa50be756 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 12 May 2010 09:00:09 +0000 Subject: [PATCH] Followup r66259 r66168 Wrong column used... --- includes/api/ApiQueryFilearchive.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index 3391dbd095..70c8a98be6 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -83,7 +83,7 @@ class ApiQueryFilearchive extends ApiQueryBase { } $this->addFieldsIf( 'fa_metadata', $fld_metadata ); - $this->addFieldsIf( 'fa_bitdepth', $fld_bitdepth ); + $this->addFieldsIf( 'fa_bits', $fld_bitdepth ); // Image filters $dir = ( $params['dir'] == 'descending' ? 'older' : 'newer' ); @@ -154,7 +154,7 @@ class ApiQueryFilearchive extends ApiQueryBase { $file['metadata'] = $row->fa_metadata ? ApiQueryImageInfo::processMetaData( unserialize( $row->fa_metadata ), $result ) : null; } if ( $fld_bitdepth ){ - $file['bitdepth'] = $row->fa_bitdepth; + $file['bitdepth'] = $row->fa_bits; } if ( $fld_mime ) { $file['mime'] = "$row->fa_major_mime/$row->fa_minor_mime"; -- 2.20.1