Special:PrefixIndex: Convert to OOUI
authorgopavasanth <gopavasanth1999@gmail.com>
Sat, 21 Apr 2018 13:24:16 +0000 (18:54 +0530)
committerThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Fri, 18 May 2018 11:58:11 +0000 (13:58 +0200)
Bug: T117726
Change-Id: I13c4d6d5132b7085bc954a97d270efbef0acb846

includes/specials/SpecialPrefixindex.php

index 2f285c9..3ca3a85 100644 (file)
@@ -128,7 +128,7 @@ class SpecialPrefixindex extends SpecialAllPages {
                ];
                $context = new DerivativeContext( $this->getContext() );
                $context->setTitle( $this->getPageTitle() ); // Remove subpage
-               $htmlForm = new HTMLForm( $formDescriptor, $context );
+               $htmlForm = HTMLForm::factory( 'ooui', $formDescriptor, $context );
                $htmlForm
                        ->setMethod( 'get' )
                        ->setWrapperLegendMsg( 'prefixindex' )