X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialExpandTemplates.php;h=73ca76bb9738a3165f972470ece077e38d1504ad;hb=b5e255e914f0fe70890f8ac61d9d19476699873e;hp=560d75a6b1d3588a89501e4859f7376aedce80f7;hpb=32f52cbacd760f8c1cb60345fe0310cbc8d7a4ec;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialExpandTemplates.php b/includes/specials/SpecialExpandTemplates.php index 560d75a6b1..9ea5e089a6 100644 --- a/includes/specials/SpecialExpandTemplates.php +++ b/includes/specials/SpecialExpandTemplates.php @@ -56,6 +56,7 @@ class SpecialExpandTemplates extends SpecialPage { global $wgParser; $this->setHeaders(); + $this->addHelpLink( 'Help:ExpandTemplates' ); $request = $this->getRequest(); $titleStr = $request->getText( 'wpContextTitle' ); @@ -114,8 +115,10 @@ class SpecialExpandTemplates extends SpecialPage { } $config = $this->getConfig(); - if ( $config->get( 'UseTidy' ) && $options->getTidy() ) { + if ( MWTidy::isEnabled() && $options->getTidy() ) { $tmp = MWTidy::tidy( $tmp ); + } else { + wfDeprecated( 'disabling tidy', '1.33' ); } $out->addHTML( $tmp ); @@ -151,7 +154,6 @@ class SpecialExpandTemplates extends SpecialPage { * * @param string $title Value for context title field * @param string $input Value for input textbox - * @return string */ private function makeForm( $title, $input ) { $fields = [ @@ -163,7 +165,6 @@ class SpecialExpandTemplates extends SpecialPage { 'size' => 60, 'default' => $title, 'autofocus' => true, - 'cssclass' => 'mw-ui-input-inline', ], 'input' => [ 'type' => 'textarea', @@ -172,6 +173,7 @@ class SpecialExpandTemplates extends SpecialPage { 'rows' => 10, 'default' => $input, 'id' => 'input', + 'useeditfont' => true, ], 'removecomments' => [ 'type' => 'check', @@ -226,7 +228,11 @@ class SpecialExpandTemplates extends SpecialPage { $output, 10, 10, - [ 'id' => 'output', 'readonly' => 'readonly' ] + [ + 'id' => 'output', + 'readonly' => 'readonly', + 'class' => 'mw-editfont-' . $this->getUser()->getOption( 'editfont' ) + ] ); return $out;