Also fixing regression caused by Ie119c92aa4936e2f8982163d4b00d08949f49264
Change-Id: I59f623d2dc43f83cfca3ff31ef79fed0230f68af
// Add the general form
$action = htmlspecialchars( wfScript() );
// 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(
"<form action=\"$action\" method=\"get\" id=\"mw-history-searchform\">" .
Xml::fieldset(
$this->msg( 'history-fieldset-title' )->text(),
$out->addHTML(
"<form action=\"$action\" method=\"get\" id=\"mw-history-searchform\">" .
Xml::fieldset(
$this->msg( 'history-fieldset-title' )->text(),
[ 'id' => 'mw-history-search' ]
) .
[ '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" .
- '</fieldset></form>'
);
Hooks::run( 'PageHistoryBeforeList', [ &$this->page, $this->getContext() ] );
);
Hooks::run( 'PageHistoryBeforeList', [ &$this->page, $this->getContext() ] );