SpecialLinkSearch: Use 'type' rather than 'class' for HTMLForm's HTMLSelectNamespace
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 11 Jul 2015 15:10:12 +0000 (17:10 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sat, 11 Jul 2015 15:10:12 +0000 (17:10 +0200)
That seems to be the usual convention.

Change-Id: I3afe7510be73178f82c9507ec68964f6e81567d4

includes/specials/SpecialLinkSearch.php

index 7ffaf48..b22467c 100644 (file)
@@ -135,7 +135,7 @@ class LinkSearchPage extends QueryPage {
                if ( !$this->getConfig()->get( 'MiserMode' ) ) {
                        $fields += array(
                                'namespace' => array(
-                                       'class' => 'HTMLSelectNamespace',
+                                       'type' => 'namespaceselect',
                                        'name' => 'namespace',
                                        'label-message' => 'linksearch-ns',
                                        'default' => $namespace,