* 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:
parent
063b4fe03a
commit
c03a314301
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue