# Special value indicating that there is no EXIF data in the file
return true;
}
- $exif = @unserialize( $metadata );
+ wfSuppressWarnings();
+ $exif = unserialize( $metadata );
+ wfRestoreWarnings();
if ( !isset( $exif['MEDIAWIKI_EXIF_VERSION'] ) ||
$exif['MEDIAWIKI_EXIF_VERSION'] != Exif::version() )
{
}
function isMetadataValid( $image, $metadata ) {
- $data = @unserialize( $metadata );
+ wfSuppressWarnings();
+ $data = unserialize( $metadata );
+ wfRestoreWarnings();
return (boolean) $data;
}
function getLongDesc( $image ) {
global $wgUser, $wgLang;
$sk = $wgUser->getSkin();
-
- $metadata = @unserialize($image->getMetadata());
+
+ wfSuppressWarnings();
+ $metadata = unserialize($image->getMetadata());
+ wfRestoreWarnings();
if (!$metadata) return parent::getLongDesc( $image );