From 3adf64bccd95e1e18561b727e4319fe0080bf38e Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Thu, 30 Jul 2009 08:43:26 +0000 Subject: [PATCH] Use $wgFileExtensions to check whether SVG is enabled --- includes/specials/SpecialVersion.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 9cad0b3757..7e4d39e189 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -102,7 +102,7 @@ class SpecialVersion extends SpecialPage { */ static function softwareInformation() { global $wgUseImageMagick, $wgImageMagickConvertCommand, $wgDiff3, $wgDiff, $wgUseTeX; - global $wgAllowTitlesInSVG, $wgSVGConverter, $wgSVGConverters, $wgSVGConverterPath; + global $wgFileExtensions, $wgSVGConverter, $wgSVGConverters, $wgSVGConverterPath; global $wgUser, $wgSpecialVersionExtended; $dbr = wfGetDB( DB_SLAVE ); @@ -194,7 +194,7 @@ class SpecialVersion extends SpecialPage { } // Look for SVG converter and print the version info - if ( $wgAllowTitlesInSVG ) { + if ( in_array( 'svg', $wgFileExtensions ) ) { $swSVGConvName = $wgSVGConverter; $haveSVGConvVer = false; $pathVar = '$path/'; -- 2.20.1