Replace deprecated use of $wgUseTidy in Special:ExpandTemplates
authorC. Scott Ananian <cscott@cscott.net>
Thu, 27 Sep 2018 17:33:13 +0000 (13:33 -0400)
committerKrinkle <krinklemail@gmail.com>
Fri, 28 Sep 2018 22:21:55 +0000 (22:21 +0000)
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

index 73ca76b..4587d40 100644 (file)
@@ -115,7 +115,7 @@ class SpecialExpandTemplates extends SpecialPage {
                        }
 
                        $config = $this->getConfig();
                        }
 
                        $config = $this->getConfig();
-                       if ( $config->get( 'UseTidy' ) && $options->getTidy() ) {
+                       if ( MWTidy::isEnabled() && $options->getTidy() ) {
                                $tmp = MWTidy::tidy( $tmp );
                        }
 
                                $tmp = MWTidy::tidy( $tmp );
                        }