X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FGIFMetadataExtractor.php;h=591ccf191fd0200c0c4a85483c6b5409ead5564b;hb=f6aae4d1265755d101af9dabe9b46332f31b093c;hp=ac5fc81c9a4cd954f70f2b17e7b4ebc220ec0d6f;hpb=7f3d6713e7191c476adb3d3c30344a0327b853d3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/GIFMetadataExtractor.php b/includes/media/GIFMetadataExtractor.php index ac5fc81c9a..591ccf191f 100644 --- a/includes/media/GIFMetadataExtractor.php +++ b/includes/media/GIFMetadataExtractor.php @@ -161,9 +161,9 @@ class GIFMetadataExtractor { UtfNormal\Validator::quickIsNFCVerify( $dataCopy ); if ( $dataCopy !== $data ) { - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $data = iconv( 'windows-1252', 'UTF-8', $data ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); } $commentCount = count( $comment ); @@ -264,7 +264,7 @@ class GIFMetadataExtractor { */ static function readGCT( $fh, $bpp ) { if ( $bpp > 0 ) { - $max = pow( 2, $bpp ); + $max = 2 ** $bpp; for ( $i = 1; $i <= $max; ++$i ) { fread( $fh, 3 ); }