X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FPNGMetadataExtractor.php;h=78ed0bcdc5646a901b793f33898c08810bea4e1b;hb=8624538de243da3779db5eb3362bedf78d2e2931;hp=1cb2ec019aa3222154f3eb8074b7d0f995d830b9;hpb=853b17ef5788be25045855ab340c9e0d8b443218;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/PNGMetadataExtractor.php b/includes/media/PNGMetadataExtractor.php index 1cb2ec019a..78ed0bcdc5 100644 --- a/includes/media/PNGMetadataExtractor.php +++ b/includes/media/PNGMetadataExtractor.php @@ -202,9 +202,9 @@ class PNGMetadataExtractor { // if compressed if ( $items[2] == "\x01" ) { if ( function_exists( 'gzuncompress' ) && $items[4] === "\x00" ) { - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $items[5] = gzuncompress( $items[5] ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); if ( $items[5] === false ) { // decompression failed @@ -246,9 +246,9 @@ class PNGMetadataExtractor { fseek( $fh, self::$crcSize, SEEK_CUR ); continue; } - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $content = iconv( 'ISO-8859-1', 'UTF-8', $content ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); if ( $content === false ) { throw new Exception( __METHOD__ . ": Read error (error with iconv)" ); @@ -286,9 +286,9 @@ class PNGMetadataExtractor { continue; } - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $content = gzuncompress( $content ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); if ( $content === false ) { // decompression failed @@ -297,9 +297,9 @@ class PNGMetadataExtractor { continue; } - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $content = iconv( 'ISO-8859-1', 'UTF-8', $content ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); if ( $content === false ) { throw new Exception( __METHOD__ . ": Read error (error with iconv)" ); @@ -406,8 +406,6 @@ class PNGMetadataExtractor { 'text' => $text, 'bitDepth' => $bitDepth, 'colorType' => $colorType, - 'width' => $width, - 'height' => $height, ]; }