From: Amir Sarabadani Date: Sun, 17 Sep 2017 13:20:34 +0000 (+0400) Subject: Cleanup form for history X-Git-Tag: 1.31.0-rc.0~2055^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=4db32be1e89b7b5f07f9a57e3ea074a265ffb0fd;p=lhc%2Fweb%2Fwiklou.git Cleanup form for history Also fixing regression caused by Ie119c92aa4936e2f8982163d4b00d08949f49264 Change-Id: I59f623d2dc43f83cfca3ff31ef79fed0230f68af --- diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 7460340a96..fe84852403 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -192,27 +192,26 @@ class HistoryAction extends FormlessAction { // Add the general form $action = htmlspecialchars( wfScript() ); + $content = Html::hidden( 'title', $this->getTitle()->getPrefixedDBkey() ) . "\n"; + $content .= Html::hidden( 'action', 'history' ) . "\n"; + $content .= Xml::dateMenu( + ( $year == null ? MWTimestamp::getLocalInstance()->format( 'Y' ) : $year ), + $month + ) . ' '; + $content .= $tagSelector ? ( implode( ' ', $tagSelector ) . ' ' ) : ''; + $content .= $checkDeleted . Html::submitButton( + $this->msg( 'historyaction-submit' )->text(), + [], + [ 'mw-ui-progressive' ] + ); $out->addHTML( "
" . Xml::fieldset( $this->msg( 'history-fieldset-title' )->text(), - false, + $content, [ 'id' => 'mw-history-search' ] ) . - Html::hidden( 'title', $this->getTitle()->getPrefixedDBkey() ) . "\n" . - Html::hidden( 'action', 'history' ) . "\n" . - Xml::dateMenu( - ( $year == null ? MWTimestamp::getLocalInstance()->format( 'Y' ) : $year ), - $month - ) . ' ' . - ( $tagSelector ? ( implode( ' ', $tagSelector ) . ' ' ) : '' ) . - $checkDeleted . - Html::submitButton( - $this->msg( 'historyaction-submit' )->text(), - [], - [ 'mw-ui-progressive' ] - ) . "\n" . - '
' + '' ); Hooks::run( 'PageHistoryBeforeList', [ &$this->page, $this->getContext() ] );