From: C. Scott Ananian Date: Thu, 27 Sep 2018 17:33:13 +0000 (-0400) Subject: Replace deprecated use of $wgUseTidy in Special:ExpandTemplates X-Git-Tag: 1.34.0-rc.0~3966 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=0ac1c01a3a2c21769b252149032a67de930d069b;p=lhc%2Fweb%2Fwiklou.git Replace deprecated use of $wgUseTidy in Special:ExpandTemplates This use managed to escape my notice in I2e7d990da1da378eb6e828d4b3c0f5a41791dd92. Note that $wgUseTidy has actually been false in production since Idf246d05d116f63a73105b50a1929a7721fbe7b9. Bug: T175706 Change-Id: I684be210c6efde5b5eb4dca163d45b2701df7555 --- diff --git a/includes/specials/SpecialExpandTemplates.php b/includes/specials/SpecialExpandTemplates.php index 73ca76bb97..4587d40609 100644 --- a/includes/specials/SpecialExpandTemplates.php +++ b/includes/specials/SpecialExpandTemplates.php @@ -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 ); }