Merge "Use improvements of jQuery 3.3"
[lhc/web/wiklou.git] / includes / specials / SpecialProtectedtitles.php
index fa12f50..00bfba9 100644 (file)
@@ -112,7 +112,7 @@ class SpecialProtectedtitles extends SpecialPage {
         * @return string
         * @private
         */
-       function showOptions( $namespace, $type = 'edit', $level ) {
+       function showOptions( $namespace, $type, $level ) {
                $formDescriptor = [
                        'namespace' => [
                                'class' => 'HTMLSelectNamespace',
@@ -125,7 +125,7 @@ class SpecialProtectedtitles extends SpecialPage {
                        'levelmenu' => $this->getLevelMenu( $level )
                ];
 
-               $htmlForm = new HTMLForm( $formDescriptor, $this->getContext() );
+               $htmlForm = HTMLForm::factory( 'ooui', $formDescriptor, $this->getContext() );
                $htmlForm
                        ->setMethod( 'get' )
                        ->setWrapperLegendMsg( 'protectedtitles' )