r66260 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66259‎ | r66260 | r66261 >
Date:09:00, 12 May 2010
Author:reedy
Status:ok
Tags:
Comment:
Followup r66259 r66168

Wrong column used...
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryFilearchive.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryFilearchive.php
@@ -83,7 +83,7 @@
8484 }
8585
8686 $this->addFieldsIf( 'fa_metadata', $fld_metadata );
87 - $this->addFieldsIf( 'fa_bitdepth', $fld_bitdepth );
 87+ $this->addFieldsIf( 'fa_bits', $fld_bitdepth );
8888
8989 // Image filters
9090 $dir = ( $params['dir'] == 'descending' ? 'older' : 'newer' );
@@ -154,7 +154,7 @@
155155 $file['metadata'] = $row->fa_metadata ? ApiQueryImageInfo::processMetaData( unserialize( $row->fa_metadata ), $result ) : null;
156156 }
157157 if ( $fld_bitdepth ){
158 - $file['bitdepth'] = $row->fa_bitdepth;
 158+ $file['bitdepth'] = $row->fa_bits;
159159 }
160160 if ( $fld_mime ) {
161161 $file['mime'] = "$row->fa_major_mime/$row->fa_minor_mime";

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r66168* (bug 21346) Make deleted images searchable by hash...reedy22:41, 10 May 2010
r66259followup r66168: fix typo in variable namegurch08:22, 12 May 2010

Status & tagging log