* @return string
* @private
*/
- function showOptions( $namespace, $type = 'edit', $level ) {
+ function showOptions( $namespace, $type, $level ) {
$formDescriptor = [
'namespace' => [
'class' => 'HTMLSelectNamespace',
'levelmenu' => $this->getLevelMenu( $level )
];
- $htmlForm = new HTMLForm( $formDescriptor, $this->getContext() );
+ $htmlForm = HTMLForm::factory( 'ooui', $formDescriptor, $this->getContext() );
$htmlForm
->setMethod( 'get' )
->setWrapperLegendMsg( 'protectedtitles' )