X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Factions%2FHistoryAction.php;h=706241adcc3dd27b9ce82c199b56b90602f9822f;hb=9f2ffdfbd4c289446f2baf8a168cbe89fa122157;hp=7ff6f7df2d897857fa995624a3778c14d8783184;hpb=5d491bed7b6950a7c5ae7927f9384f810375afee;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 7ff6f7df2d..706241adcc 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -139,6 +139,7 @@ class HistoryAction extends FormlessAction { } return $year && $month && $day ? $year . '-' . $month . '-' . $day : ''; } + /** * Print the history page for an article. */ @@ -181,10 +182,9 @@ class HistoryAction extends FormlessAction { } // Handle atom/RSS feeds. - $feedType = $request->getVal( 'feed' ); - if ( $feedType ) { + $feedType = $request->getRawVal( 'feed' ); + if ( $feedType !== null ) { $this->feed( $feedType ); - return; } @@ -268,8 +268,10 @@ class HistoryAction extends FormlessAction { $htmlForm ->setMethod( 'get' ) ->setAction( wfScript() ) + ->setCollapsibleOptions( true ) ->setId( 'mw-history-searchform' ) ->setSubmitText( $this->msg( 'historyaction-submit' )->text() ) + ->setWrapperAttributes( [ 'id' => 'mw-history-search' ] ) ->setWrapperLegend( $this->msg( 'history-fieldset-title' )->text() ); $htmlForm->loadData();