From 7b8dd81dbc1baf2ac8f66240f428c88510e60bea Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sun, 3 Aug 2014 14:55:15 -0700 Subject: [PATCH] SpecialExpandTemplates: Use Config instead of globals Change-Id: I84b1008a11aa12708231b6f460715a5cdd4f4e01 --- includes/specials/SpecialExpandTemplates.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialExpandTemplates.php b/includes/specials/SpecialExpandTemplates.php index ecbd353dbb..60eec39214 100644 --- a/includes/specials/SpecialExpandTemplates.php +++ b/includes/specials/SpecialExpandTemplates.php @@ -52,7 +52,7 @@ class SpecialExpandTemplates extends SpecialPage { * Show the special page */ function execute( $subpage ) { - global $wgParser, $wgUseTidy, $wgAlwaysUseTidy; + global $wgParser; $this->setHeaders(); @@ -112,7 +112,8 @@ class SpecialExpandTemplates extends SpecialPage { ); } - if ( ( $wgUseTidy && $options->getTidy() ) || $wgAlwaysUseTidy ) { + $config = $this->getConfig(); + if ( ( $config->get( 'UseTidy' ) && $options->getTidy() ) || $config->get( 'AlwaysUseTidy' ) ) { $tmp = MWTidy::tidy( $tmp ); } -- 2.20.1