From: Ævar Arnfjörð Bjarmason Date: Sun, 8 May 2005 21:03:03 +0000 (+0000) Subject: * Removed the wfSuppressWarnings() I inserted previously X-Git-Tag: 1.5.0alpha2~253 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=19b0ea60daad3f3f0eaa142f2a7ac77fb2e8476a;p=lhc%2Fweb%2Fwiklou.git * Removed the wfSuppressWarnings() I inserted previously --- diff --git a/includes/Image.php b/includes/Image.php index 0384895338..ac4ec10a11 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -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; }