Replace deprecated use of $wgUseTidy in Special:ExpandTemplates
[lhc/web/wiklou.git] / includes / specials / SpecialExpandTemplates.php
index 73ca76b..4587d40 100644 (file)
@@ -115,7 +115,7 @@ class SpecialExpandTemplates extends SpecialPage {
                        }
 
                        $config = $this->getConfig();
-                       if ( $config->get( 'UseTidy' ) && $options->getTidy() ) {
+                       if ( MWTidy::isEnabled() && $options->getTidy() ) {
                                $tmp = MWTidy::tidy( $tmp );
                        }