diff options
Diffstat (limited to 'includes/media/SVG.php')
-rw-r--r-- | includes/media/SVG.php | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/includes/media/SVG.php b/includes/media/SVG.php index 75d0ad3d..2604e3b4 100644 --- a/includes/media/SVG.php +++ b/includes/media/SVG.php @@ -1,7 +1,11 @@ <?php +/** + * @file + * @ingroup Media + */ /** - * @addtogroup Media + * @ingroup Media */ class SvgHandler extends ImageHandler { function isEnabled() { @@ -35,10 +39,10 @@ class SvgHandler extends ImageHandler { } return true; } - + function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) { global $wgSVGConverters, $wgSVGConverter, $wgSVGConverterPath; - + if ( !$this->normaliseParams( $image, $params ) ) { return new TransformParameterError( $params ); } @@ -53,7 +57,7 @@ class SvgHandler extends ImageHandler { } if ( !wfMkdirParents( dirname( $dstPath ) ) ) { - return new MediaTransformError( 'thumbnail_error', $clientWidth, $clientHeight, + return new MediaTransformError( 'thumbnail_error', $clientWidth, $clientHeight, wfMsg( 'thumbnail_dest_directory' ) ); } @@ -94,9 +98,9 @@ class SvgHandler extends ImageHandler { function getLongDesc( $file ) { global $wgLang; - return wfMsg( 'svg-long-desc', $file->getWidth(), $file->getHeight(), + return wfMsgExt( 'svg-long-desc', 'parseinline', + $wgLang->formatNum( $file->getWidth() ), + $wgLang->formatNum( $file->getHeight() ), $wgLang->formatSize( $file->getSize() ) ); } } - - |