From 0ac1c01a3a2c21769b252149032a67de930d069b Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Thu, 27 Sep 2018 13:33:13 -0400 Subject: [PATCH] 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 --- includes/specials/SpecialExpandTemplates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.20.1