summaryrefslogtreecommitdiff
path: root/includes/media/PNG.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/media/PNG.php')
-rw-r--r--includes/media/PNG.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/media/PNG.php b/includes/media/PNG.php
index 5f1aca57..c3f08325 100644
--- a/includes/media/PNG.php
+++ b/includes/media/PNG.php
@@ -118,9 +118,9 @@ class PNGHandler extends BitmapHandler {
return self::METADATA_GOOD;
}
- wfSuppressWarnings();
+ MediaWiki\suppressWarnings();
$data = unserialize( $metadata );
- wfRestoreWarnings();
+ MediaWiki\restoreWarnings();
if ( !$data || !is_array( $data ) ) {
wfDebug( __METHOD__ . " invalid png metadata\n" );
@@ -147,9 +147,9 @@ class PNGHandler extends BitmapHandler {
global $wgLang;
$original = parent::getLongDesc( $image );
- wfSuppressWarnings();
+ MediaWiki\suppressWarnings();
$metadata = unserialize( $image->getMetadata() );
- wfRestoreWarnings();
+ MediaWiki\restoreWarnings();
if ( !$metadata || $metadata['frameCount'] <= 0 ) {
return $original;