* Removed the wfSuppressWarnings() I inserted previously
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 8 May 2005 21:03:03 +0000 (21:03 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 8 May 2005 21:03:03 +0000 (21:03 +0000)
includes/Image.php

index 0384895..ac4ec10 100644 (file)
@@ -1145,15 +1145,10 @@ class Image
 
                $exif = exif_read_data( $this->imagePath );
 
-               // Some of the type checks in validate will spew warnings on invalid data
-               #$obj = new Exif;
-               wfSuppressWarnings();
                foreach($exif as $k => $v) {
                        if ( !in_array($k, $this->exif->mValidExif) || !$this->exif->validate($k, $v) )
                                unset($exif[$k]);
                }
-               wfRestoreWarnings();
-               
                return $exif;
        }