X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FPNGHandler.php;h=a4b4dc53a092c61c9d6e6b627e41e592b95ca53c;hb=574bd38c04cda411b6382046e0553d85fffc9aa9;hp=6748b26b09adb42791e9f0edced7dd302d3ffa7a;hpb=0770f85a0a293e6c7af6f1d3d3a1dbd2d13c1e09;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/PNGHandler.php b/includes/media/PNGHandler.php index 6748b26b09..a4b4dc53a0 100644 --- a/includes/media/PNGHandler.php +++ b/includes/media/PNGHandler.php @@ -34,7 +34,7 @@ class PNGHandler extends BitmapHandler { * @param string $filename * @return string */ - function getMetadata( $image, $filename ) { + public function getMetadata( $image, $filename ) { try { $metadata = BitmapMetadataHandler::PNG( $filename ); } catch ( Exception $e ) { @@ -52,7 +52,7 @@ class PNGHandler extends BitmapHandler { * @param bool|IContextSource $context Context to use (optional) * @return array|bool */ - function formatMetadata( $image, $context = false ) { + public function formatMetadata( $image, $context = false ) { $meta = $this->getCommonMetaArray( $image ); if ( count( $meta ) === 0 ) { return false; @@ -111,7 +111,7 @@ class PNGHandler extends BitmapHandler { return 'parsed-png'; } - function isMetadataValid( $image, $metadata ) { + public function isMetadataValid( $image, $metadata ) { if ( $metadata === self::BROKEN_FILE ) { // Do not repetitivly regenerate metadata on broken file. return self::METADATA_GOOD; @@ -142,7 +142,7 @@ class PNGHandler extends BitmapHandler { * @param File $image * @return string */ - function getLongDesc( $image ) { + public function getLongDesc( $image ) { global $wgLang; $original = parent::getLongDesc( $image );