* Removed checks for $wgShowEXIF, these functions never even get called from

the parent if it's false so they're redundant.
This commit is contained in:
Ævar Arnfjörð Bjarmason 2005-05-09 19:25:57 +00:00
parent 063b4fe03a
commit c03a314301

View 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