if ( $handler ) {
return $handler->getLongDesc( $this );
} else {
- return MediaHandler::getLongDesc( $this );
+ return MediaHandler::getLongDescription( $this );
}
}
if ( $handler ) {
return $handler->getShortDesc( $this );
} else {
- return MediaHandler::getShortDesc( $this );
+ return MediaHandler::getShortDescription( $this );
}
}
'value' => $value
);
}
-
+
function getShortDesc( $file ) {
+ return self::getShortDescription( $file );
+ }
+
+ function getLongDesc( $file ) {
+ return self::getLongDescription( $file );
+ }
+
+ static function getShortDescription( $file ) {
global $wgLang;
$nbytes = '(' . wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ),
$wgLang->formatNum( $file->getSize() ) ) . ')';
return "$nbytes";
}
- function getLongDesc( $file ) {
+ static function getLongDescription( $file ) {
global $wgUser;
$sk = $wgUser->getSkin();
return wfMsgExt( 'file-info', 'parseinline',
return array( 'png', 'image/png' );
}
- function getLongDesc( $file ) {
+ static function getLongDescription( $file ) {
global $wgLang;
return wfMsgExt( 'svg-long-desc', 'parseinline',
$wgLang->formatNum( $file->getWidth() ),