fix for r52476, include the cases with quotation marks.
authorShinjiman <shinjiman@users.mediawiki.org>
Sat, 27 Jun 2009 09:01:47 +0000 (09:01 +0000)
committerShinjiman <shinjiman@users.mediawiki.org>
Sat, 27 Jun 2009 09:01:47 +0000 (09:01 +0000)
includes/specials/SpecialVersion.php

index 4a12d57..1563d65 100644 (file)
@@ -113,7 +113,7 @@ class SpecialVersion extends SpecialPage {
 
                // Look for ImageMagick's version, if did not found, try to find the GD library version
                if ( $wgUseImageMagick === true ) {
-                       if ( file_exists( $wgImageMagickConvertCommand ) ) {
+                       if ( file_exists( trim( $wgImageMagickConvertCommand, '"' ) ) ) {
                                $swImageMagickInfo = self::execOutput( $wgImageMagickConvertCommand . ' -version' );
                                list( $head, $tail ) = explode( 'ImageMagick', $swImageMagickInfo );
                                list( $swImageMagickVer ) = explode('http://www.imagemagick.org', $tail );