From e240272a80d384bd3d4785f53c92ddf5cac8b52b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 25 Nov 2008 18:26:21 +0000 Subject: [PATCH] * Follow-up to r43656 -- rename the use of a function when you rename it! * Follow-up to r43655 -- $clientWidth/$clientHeight were used in error generation, no longer exist in the breakout function --- includes/media/SVG.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/media/SVG.php b/includes/media/SVG.php index 7077caa631..f0519e8973 100644 --- a/includes/media/SVG.php +++ b/includes/media/SVG.php @@ -60,7 +60,7 @@ class SvgHandler extends ImageHandler { wfMsg( 'thumbnail_dest_directory' ) ); } - $status = $this->transformSvgToPng( $srcPath, $dstPath, $physicalWidth, $physicalHeight ); + $status = $this->rasterize( $srcPath, $dstPath, $physicalWidth, $physicalHeight ); if( $status === true ) { return new ThumbnailImage( $image, $dstUrl, $clientWidth, $clientHeight, $dstPath ); } else { @@ -99,7 +99,7 @@ class SvgHandler extends ImageHandler { if ( $retval != 0 || $removed ) { wfDebugLog( 'thumbnail', sprintf( 'thumbnail failed on %s: error %d "%s" from "%s"', wfHostname(), $retval, trim($err), $cmd ) ); - return new MediaTransformError( 'thumbnail_error', $clientWidth, $clientHeight, $err ); + return new MediaTransformError( 'thumbnail_error', $width, $height, $err ); } return true; } -- 2.20.1