Use mediawiki/at-ease library for suppressing warnings
[lhc/web/wiklou.git] / includes / api / ApiQueryImageInfo.php
index 02846dc..bcd3c32 100644 (file)
@@ -523,9 +523,9 @@ class ApiQueryImageInfo extends ApiQueryBase {
                }
 
                if ( $meta ) {
-                       wfSuppressWarnings();
+                       MediaWiki\suppressWarnings();
                        $metadata = unserialize( $file->getMetadata() );
-                       wfRestoreWarnings();
+                       MediaWiki\restoreWarnings();
                        if ( $metadata && $version !== 'latest' ) {
                                $metadata = $file->convertMetadataVersion( $metadata, $version );
                        }