);
}
- static function getShortDesc( $file ) {
+ function getShortDesc( $file ) {
global $wgLang;
$nbytes = '(' . wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ),
$wgLang->formatNum( $file->getSize() ) ) . ')';
return "$nbytes";
}
- static function getLongDesc( $file ) {
+ function getLongDesc( $file ) {
global $wgUser;
$sk = $wgUser->getSkin();
return wfMsg( 'file-info', $sk->formatSize( $file->getSize() ), $file->getMimeType() );
return $gis;
}
- static function getShortDesc( $file ) {
+ function getShortDesc( $file ) {
global $wgLang;
$nbytes = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ),
$wgLang->formatNum( $file->getSize() ) );
return "$widthheight ($nbytes)";
}
- static function getLongDesc( $file ) {
+ function getLongDesc( $file ) {
global $wgLang;
return wfMsgHtml('file-info-size', $wgLang->formatNum( $file->getWidth() ), $wgLang->formatNum( $file->getHeight() ),
$wgLang->formatSize( $file->getSize() ), $file->getMimeType() );