From c03a3143014e505196c2e5068486f3b06c25f7c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 9 May 2005 19:25:57 +0000 Subject: [PATCH] * Removed checks for $wgShowEXIF, these functions never even get called from the parent if it's false so they're redundant. --- includes/Image.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/includes/Image.php b/includes/Image.php index 4c9a1c6c0a..f7660848de 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -1146,8 +1146,6 @@ class Image * @return array */ function retrieveExifData () { - global $wgShowEXIF ; - if ( ! $wgShowEXIF ) return array (); if ( $this->type !== '2' ) return array (); $exif = exif_read_data( $this->imagePath ); @@ -1191,10 +1189,9 @@ class Image } function updateExifData( $version ) { - global $wgShowEXIF; $fname = 'Image:updateExifData'; - if ( ! $wgShowEXIF || $this->getImagePath() === false ) # Not a local image + if ( $this->getImagePath() === false ) # Not a local image return; # Get EXIF data from image -- 2.20.1