Index: trunk/phase3/includes/api/ApiQueryFilearchive.php |
— | — | @@ -83,7 +83,7 @@ |
84 | 84 | } |
85 | 85 | |
86 | 86 | $this->addFieldsIf( 'fa_metadata', $fld_metadata ); |
87 | | - $this->addFieldsIf( 'fa_bitdepth', $fld_bitdepth ); |
| 87 | + $this->addFieldsIf( 'fa_bits', $fld_bitdepth ); |
88 | 88 | |
89 | 89 | // Image filters |
90 | 90 | $dir = ( $params['dir'] == 'descending' ? 'older' : 'newer' ); |
— | — | @@ -154,7 +154,7 @@ |
155 | 155 | $file['metadata'] = $row->fa_metadata ? ApiQueryImageInfo::processMetaData( unserialize( $row->fa_metadata ), $result ) : null; |
156 | 156 | } |
157 | 157 | if ( $fld_bitdepth ){ |
158 | | - $file['bitdepth'] = $row->fa_bitdepth; |
| 158 | + $file['bitdepth'] = $row->fa_bits; |
159 | 159 | } |
160 | 160 | if ( $fld_mime ) { |
161 | 161 | $file['mime'] = "$row->fa_major_mime/$row->fa_minor_mime"; |