Replace deprecated use of $wgUseTidy in Special:ExpandTemplates
[lhc/web/wiklou.git] / includes / specials / SpecialExpandTemplates.php
index 0c18a48..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 );
                        }
 
@@ -164,7 +164,6 @@ class SpecialExpandTemplates extends SpecialPage {
                                'size' => 60,
                                'default' => $title,
                                'autofocus' => true,
-                               'cssclass' => 'mw-ui-input-inline',
                        ],
                        'input' => [
                                'type' => 'textarea',