X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FPNGMetadataExtractor.php;h=ac92460ea6453c199b01818f0d21b765f4643897;hb=8a6548ee452ef08cec6248fbf4e215be812088b2;hp=bccd36c1e93492bc116d9ec1716aa279c1d6fc42;hpb=d55b1505b0e21116b995808c20cbbd2004959add;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/PNGMetadataExtractor.php b/includes/media/PNGMetadataExtractor.php index bccd36c1e9..ac92460ea6 100644 --- a/includes/media/PNGMetadataExtractor.php +++ b/includes/media/PNGMetadataExtractor.php @@ -201,9 +201,9 @@ class PNGMetadataExtractor { // if compressed if ( $items[2] == "\x01" ) { if ( function_exists( 'gzuncompress' ) && $items[4] === "\x00" ) { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $items[5] = gzuncompress( $items[5] ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); if ( $items[5] === false ) { // decompression failed @@ -245,9 +245,9 @@ class PNGMetadataExtractor { fseek( $fh, self::$crcSize, SEEK_CUR ); continue; } - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $content = iconv( 'ISO-8859-1', 'UTF-8', $content ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); if ( $content === false ) { throw new Exception( __METHOD__ . ": Read error (error with iconv)" ); @@ -285,9 +285,9 @@ class PNGMetadataExtractor { continue; } - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $content = gzuncompress( $content ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); if ( $content === false ) { // decompression failed @@ -296,9 +296,9 @@ class PNGMetadataExtractor { continue; } - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $content = iconv( 'ISO-8859-1', 'UTF-8', $content ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); if ( $content === false ) { throw new Exception( __METHOD__ . ": Read error (error with iconv)" );