* @param string $filename
* @return string
*/
- function getMetadata( $image, $filename ) {
+ public function getMetadata( $image, $filename ) {
try {
$metadata = BitmapMetadataHandler::PNG( $filename );
} catch ( Exception $e ) {
* @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;
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;
* @param File $image
* @return string
*/
- function getLongDesc( $image ) {
+ public function getLongDesc( $image ) {
global $wgLang;
$original = parent::getLongDesc( $image );