From: Ævar Arnfjörð Bjarmason Date: Mon, 9 May 2005 11:54:37 +0000 (+0000) Subject: * Checking against Exif::mFlatExif, Exif::mValidExif no longer exists X-Git-Tag: 1.5.0alpha2~243 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=f8bd0a6f6e7a0e7021a5e6570d943a6f83a829ac;p=lhc%2Fweb%2Fwiklou.git * Checking against Exif::mFlatExif, Exif::mValidExif no longer exists --- diff --git a/includes/Image.php b/includes/Image.php index 105c4269ee..5100d0c8b5 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -1151,9 +1151,8 @@ class Image if ( $this->type !== '2' ) return array (); $exif = exif_read_data( $this->imagePath ); - foreach($exif as $k => $v) { - if ( !in_array($k, $this->exif->mValidExif) ) { + if ( !in_array($k, array_keys($this->exif->mFlatExif)) ) { wfDebug( "Image::retrieveExifData: '$k' is not a valid Exif tag (type: '" . gettype($v) . "'; data: '$v')\n"); unset($exif[$k]); }