}
return $year && $month && $day ? $year . '-' . $month . '-' . $day : '';
}
+
/**
* Print the history page for an article.
*/
}
// Handle atom/RSS feeds.
- $feedType = $request->getVal( 'feed' );
- if ( $feedType ) {
+ $feedType = $request->getRawVal( 'feed' );
+ if ( $feedType !== null ) {
$this->feed( $feedType );
-
return;
}
$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();