From: Ævar Arnfjörð Bjarmason Date: Mon, 9 May 2005 09:28:06 +0000 (+0000) Subject: * Added debug statements to retriveExifData() X-Git-Tag: 1.5.0alpha2~247 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=e92372f4c603f0e5bfab16b96de8ad20e8070433;p=lhc%2Fweb%2Fwiklou.git * Added debug statements to retriveExifData() --- 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; }