From: jenkins-bot Date: Tue, 19 Apr 2016 18:44:10 +0000 (+0000) Subject: Merge "rebuildrecentchanges: Allow rebuilding specified time range only" X-Git-Tag: 1.31.0-rc.0~7248 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=31e6f7ce134c79c7502f7480d698f74b03e9a169;hp=50f54d99c9efc2d8064e6918d96849035364691b;p=lhc%2Fweb%2Fwiklou.git Merge "rebuildrecentchanges: Allow rebuilding specified time range only" --- diff --git a/includes/specials/SpecialWithoutinterwiki.php b/includes/specials/SpecialWithoutinterwiki.php index e2052b9fee..cca54b3589 100644 --- a/includes/specials/SpecialWithoutinterwiki.php +++ b/includes/specials/SpecialWithoutinterwiki.php @@ -46,23 +46,23 @@ class WithoutInterwikiPage extends PageQueryPage { return ''; } - $prefix = $this->prefix; - $t = $this->getPageTitle(); + $formDescriptor = [ + 'prefix' => [ + 'label-message' => 'allpagesprefix', + 'name' => 'prefix', + 'id' => 'wiprefix', + 'type' => 'text', + 'size' => 20, + 'default' => $this->prefix + ] + ]; - 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( 'inline', $formDescriptor, $this->getContext() ); + $htmlForm->setWrapperLegendMsg( 'withoutinterwiki-legend' ) + ->setSubmitTextMsg( 'withoutinterwiki-submit' ) + ->setMethod( 'get' ) + ->prepareForm() + ->displayForm( false ); } function sortDescending() {