Revision: 43656
Author: aaron
Date: 2008-11-18 01:24:56 +0000 (Tue, 18 Nov 2008)
Log Message:
-----------
Rename function to 'rasterize'
Modified Paths:
--------------
trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php
trunk/phase3/includes/media/SVG.php
Modified: trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php
===================================================================
--- trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php
2008-11-18 01:18:12 UTC (rev 43655)
+++ trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php
2008-11-18 01:24:56 UTC (rev 43656)
@@ -502,7 +502,7 @@
// Rasterize due to IE suckage
$svgHandler = new SvgHandler();
$dstPath = preg_replace( '/\.svg$/','.png', $filePath );
- $status = $svgHandler->transformSvgToPng( $filePath, $dstPath,
1000, 410 );
+ $status = $svgHandler->rasterize( $filePath, $dstPath, 1000,
410 );
if( $status !== true ) {
return false;
}
Modified: trunk/phase3/includes/media/SVG.php
===================================================================
--- trunk/phase3/includes/media/SVG.php 2008-11-18 01:18:12 UTC (rev 43655)
+++ trunk/phase3/includes/media/SVG.php 2008-11-18 01:24:56 UTC (rev 43656)
@@ -77,7 +77,7 @@
* @param string $height
* @returns TRUE/MediaTransformError
*/
- public function transformSvgToPng( $srcPath, $dstPath, $width, $height
) {
+ public function rasterize( $srcPath, $dstPath, $width, $height ) {
global $wgSVGConverters, $wgSVGConverter, $wgSVGConverterPath;
$err = false;
if ( isset( $wgSVGConverters[$wgSVGConverter] ) ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs