From: Bartosz DziewoƄski Date: Wed, 12 Jul 2017 20:17:10 +0000 (+0200) Subject: SpecialUndelete: Follow-up to 6cf13604aec40e2210c16ccdbeba850de9428d19 X-Git-Tag: 1.31.0-rc.0~2722^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=f143f055a69c27cf70173d1e39b96285f2b23ab8;p=lhc%2Fweb%2Fwiklou.git SpecialUndelete: Follow-up to 6cf13604aec40e2210c16ccdbeba850de9428d19 Per my (late) code review comments on that commit. Change-Id: Ia5bb6410b430992b66f34274e86480e6c9566525 --- diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index e6e9400cea..810f8fb158 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -713,6 +713,8 @@ class SpecialUndelete extends SpecialPage { } if ( $this->mAllowed ) { + $out->enableOOUI(); + $action = $this->getPageTitle()->getLocalURL( [ 'action' => 'submit' ] ); # Start the form here $form = new OOUI\FormLayout( [ @@ -734,8 +736,6 @@ class SpecialUndelete extends SpecialPage { } if ( $this->mAllowed && ( $haveRevisions || $haveFiles ) ) { - $out->enableOOUI(); - $fields[] = new OOUI\Layout( [ 'content' => new OOUI\HtmlSnippet( $this->msg( 'undeleteextrahelp' )->parseAsBlock() ) ] ); @@ -857,7 +857,6 @@ class SpecialUndelete extends SpecialPage { # Slip in the hidden controls here $misc = Html::hidden( 'target', $this->mTarget ); $misc .= Html::hidden( 'wpEditToken', $this->getUser()->getEditToken() ); - $misc .= Xml::closeElement( 'form' ); $history .= $misc; }