- return Html::openElement( 'form', [ 'method' => 'get', 'action' => wfScript() ] ) . "\n" .
- Html::openElement( 'fieldset' ) . "\n" .
- Html::element( 'legend', null, $this->msg( 'withoutinterwiki-legend' )->text() ) . "\n" .
- Html::hidden( 'title', $t->getPrefixedText() ) . "\n" .
- Xml::inputLabel(
- $this->msg( 'allpagesprefix' )->text(),
- 'prefix',
- 'wiprefix',
- 20,
- $prefix
- ) . "\n" .
- Xml::submitButton( $this->msg( 'withoutinterwiki-submit' )->text() ) . "\n" .
- Html::closeElement( 'fieldset' ) . "\n" .
- Html::closeElement( 'form' );
+ $htmlForm = HTMLForm::factory( 'ooui', $formDescriptor, $this->getContext() );
+ $htmlForm->setWrapperLegend( '' )
+ ->setSubmitTextMsg( 'withoutinterwiki-submit' )
+ ->setMethod( 'get' )
+ ->prepareForm()
+ ->displayForm( false );