jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/367562 )
Change subject: SpecialUndelete: Don't try to add a form to the page unless it
exists
......................................................................
SpecialUndelete: Don't try to add a form to the page unless it exists
Bug: T171523
Change-Id: I1083ce168797a698c76c3fdff4eac06edfb0ac6a
---
M includes/specials/SpecialUndelete.php
1 file changed, 5 insertions(+), 4 deletions(-)
Approvals:
Reedy: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/specials/SpecialUndelete.php
b/includes/specials/SpecialUndelete.php
index 810f8fb..39904b0 100644
--- a/includes/specials/SpecialUndelete.php
+++ b/includes/specials/SpecialUndelete.php
@@ -858,11 +858,12 @@
$misc = Html::hidden( 'target', $this->mTarget );
$misc .= Html::hidden( 'wpEditToken',
$this->getUser()->getEditToken() );
$history .= $misc;
+
+ $form->appendContent( new OOUI\HtmlSnippet( $history )
);
+ $out->addHTML( $form );
+ } else {
+ $out->addHTML( $history );
}
-
- $form->appendContent( new OOUI\HtmlSnippet( $history ) );
-
- $out->addHTML( $form );
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/367562
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1083ce168797a698c76c3fdff4eac06edfb0ac6a
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>
Gerrit-Reviewer: Bartosz DziewoĆski <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits