* Removed checks for $wgShowEXIF, these functions never even get called from
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Mon, 9 May 2005 19:25:57 +0000 (19:25 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Mon, 9 May 2005 19:25:57 +0000 (19:25 +0000)
  the parent if it's false so they're redundant.

includes/Image.php

index 4c9a1c6..f766084 100644 (file)
@@ -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