From: Victor Vasiliev Date: Thu, 30 Jul 2009 08:43:26 +0000 (+0000) Subject: Use $wgFileExtensions to check whether SVG is enabled X-Git-Tag: 1.31.0-rc.0~40641 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=3adf64bccd95e1e18561b727e4319fe0080bf38e;p=lhc%2Fweb%2Fwiklou.git Use $wgFileExtensions to check whether SVG is enabled --- 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/';