X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Factions%2FHistoryAction.php;h=706241adcc3dd27b9ce82c199b56b90602f9822f;hp=06e214f37ec99c12eac1c173a1916d20145396fa;hb=9f2ffdfbd4c289446f2baf8a168cbe89fa122157;hpb=dc180ca64fe000e3cb9a01c3a6b85e36231e0a1b diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 06e214f37e..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,6 +268,7 @@ 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' ] )