X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialExpandTemplates.php;h=269dff68915c179e0132b5e5ddc1808dec1e1b1d;hb=9a83edf6a27638cfe55924a4baf0a3081bf45e6f;hp=ecbd353dbbf5bb8a30e067b57646e3ac43b4eb6c;hpb=25b73462a10fa359e917926cab49bf9bc5575ee5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialExpandTemplates.php b/includes/specials/SpecialExpandTemplates.php index ecbd353dbb..269dff6891 100644 --- a/includes/specials/SpecialExpandTemplates.php +++ b/includes/specials/SpecialExpandTemplates.php @@ -50,9 +50,10 @@ class SpecialExpandTemplates extends SpecialPage { /** * Show the special page + * @param string|null $subpage */ function execute( $subpage ) { - global $wgParser, $wgUseTidy, $wgAlwaysUseTidy; + global $wgParser; $this->setHeaders(); @@ -112,7 +113,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 ); }