Bug: T171523
Change-Id: I1083ce168797a698c76c3fdff4eac06edfb0ac6a
$misc = Html::hidden( 'target', $this->mTarget );
$misc .= Html::hidden( 'wpEditToken', $this->getUser()->getEditToken() );
$history .= $misc;
$misc = Html::hidden( 'target', $this->mTarget );
$misc .= Html::hidden( 'wpEditToken', $this->getUser()->getEditToken() );
$history .= $misc;
- }
-
- $form->appendContent( new OOUI\HtmlSnippet( $history ) );
- $out->addHTML( $form );
+ $form->appendContent( new OOUI\HtmlSnippet( $history ) );
+ $out->addHTML( $form );
+ } else {
+ $out->addHTML( $history );
+ }