* Load metadata from the file itself
*/
function loadFromFile() {
- global $wgUseSharedUploads, $wgSharedUploadDirectory, $wgLang;
+ global $wgUseSharedUploads, $wgSharedUploadDirectory, $wgLang,
+ $wgShowEXIF;
$fname = 'Image::loadFromFile';
wfProfileIn( $fname );
$this->imagePath = $this->getFullPath();
$this->dataLoaded = true;
- if ($this->fileExists) $this->metadata = serialize ( $this->retrieveExifData() ) ;
+ if ($this->fileExists && $wgShowEXIF) $this->metadata = serialize ( $this->retrieveExifData() ) ;
else $this->metadata = serialize ( array() ) ;
if ( isset( $gis['bits'] ) ) $this->bits = $gis['bits'];