SpecialLinkSearch: Switch to OOUI form
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 11 Jul 2015 17:21:36 +0000 (19:21 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 13 Jul 2015 17:20:10 +0000 (19:20 +0200)
This demonstrates two recent features:
* Support for wrapped forms (I847c5e18ae5469aa3a68cc9fa37b2a6614476ca2)
* Support for namespace selector (I5e97e5c661582f726153533ad00695b450caed46)

Change-Id: I46ba066b324e005bf2efa67036e6db739b0dea32

includes/specials/SpecialLinkSearch.php

index 7ffaf48..41c06f5 100644 (file)
@@ -148,7 +148,7 @@ class LinkSearchPage extends QueryPage {
                $hiddenFields = array(
                        'title' => $this->getPageTitle()->getPrefixedDBkey(),
                );
-               $htmlForm = HTMLForm::factory( 'inline', $fields, $this->getContext() );
+               $htmlForm = HTMLForm::factory( 'ooui', $fields, $this->getContext() );
                $htmlForm->addHiddenFields( $hiddenFields );
                $htmlForm->setSubmitTextMsg( 'linksearch-ok' );
                $htmlForm->setWrapperLegendMsg( 'linksearch' );