Merge "exception: Add FIXME about code duplication"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 28 Sep 2018 23:01:11 +0000 (23:01 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 28 Sep 2018 23:01:11 +0000 (23:01 +0000)
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 );
                        }