Use mediawiki/at-ease library for suppressing warnings
[lhc/web/wiklou.git] / includes / media / Bitmap.php
index eadcf94..09d3807 100644 (file)
@@ -121,9 +121,9 @@ class BitmapHandler extends TransformationalImageHandler {
                                '-layers', 'merge',
                                '-background', 'white',
                        );
-                       wfSuppressWarnings();
+                       MediaWiki\suppressWarnings();
                        $xcfMeta = unserialize( $image->getMetadata() );
-                       wfRestoreWarnings();
+                       MediaWiki\restoreWarnings();
                        if ( $xcfMeta
                                && isset( $xcfMeta['colorType'] )
                                && $xcfMeta['colorType'] === 'greyscale-alpha'