From e92372f4c603f0e5bfab16b96de8ad20e8070433 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 9 May 2005 09:28:06 +0000 Subject: [PATCH] * Added debug statements to retriveExifData() --- includes/Image.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/includes/Image.php b/includes/Image.php index ac4ec10a11..2352d6fd67 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -1146,8 +1146,17 @@ class Image $exif = exif_read_data( $this->imagePath ); foreach($exif as $k => $v) { - if ( !in_array($k, $this->exif->mValidExif) || !$this->exif->validate($k, $v) ) + if ( !in_array($k, $this->exif->mValidExif) ) { + wfDebug( "Image::retrieveExifData: '$k' was not a valid Exif tag (contents: '$v')\n"); unset($exif[$k]); + } + } + + foreach($exif as $k => $v) { + if ( !$this->exif->validate($k, $v) ) { + wfDebug( "Image::retrieveExifData: '$k' did not contain valid contents (contents: '$v')\n"); + unset($exif[$k]); + } } return $exif; } -- 2.20.1