r91127 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91126‎ | r91127 | r91128 >
Date:22:24, 29 June 2011
Author:bawolff
Status:ok
Tags:
Comment:
(follow-up r91106) Explicitly compare against the self::BROKEN_FILE constants.

Before was doing if !$metadata, which used to work when self::BROKEN_FILE was 0, now it's -1
and that works less.
Modified paths:
  • /trunk/phase3/includes/media/ExifBitmap.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/media/ExifBitmap.php
@@ -101,7 +101,8 @@
102102 */
103103 function formatMetadata( $image ) {
104104 $metadata = $image->getMetadata();
105 - if ( !$metadata ||
 105+ if ( $metadata === self::OLD_BROKEN_FILE ||
 106+ $metadata === self::BROKEN_FILE ||
106107 $this->isMetadataValid( $image, $metadata ) === self::METADATA_BAD )
107108 {
108109 // So we don't try and display metadata from PagedTiffHandler

Sign-offs

UserFlagDate
Bryaninspected07:36, 30 June 2011

Follow-up revisions

RevisionCommit summaryAuthorDate
r91581Partial revert of r91106: followup to r91127....brion18:47, 6 July 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91106Add wfUnserialize() wrapper around unserialize to prevent E_NOTICE and use it...btongminh20:24, 29 June 2011

Status & tagging log