X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fmedia%2FGIFMetadataExtractor.php;h=591ccf191fd0200c0c4a85483c6b5409ead5564b;hb=cfb62c605f55553db1588bd1b81f8c2ae06e81b2;hp=ac5fc81c9a4cd954f70f2b17e7b4ebc220ec0d6f;hpb=d5a7166771613dfe4ed9fb75fa5efeced6134bd1;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 ); }