From f143f055a69c27cf70173d1e39b96285f2b23ab8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Wed, 12 Jul 2017 22:17:10 +0200 Subject: [PATCH] SpecialUndelete: Follow-up to 6cf13604aec40e2210c16ccdbeba850de9428d19 Per my (late) code review comments on that commit. Change-Id: Ia5bb6410b430992b66f34274e86480e6c9566525 --- includes/specials/SpecialUndelete.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } -- 2.20.1