$opts->add( 'pattern', false );
$opts->add( 'year', null, FormOptions::INTNULL );
$opts->add( 'month', null, FormOptions::INTNULL );
+ $opts->add( 'day', null, FormOptions::INTNULL );
$opts->add( 'tagfilter', '' );
$opts->add( 'offset', '' );
$opts->add( 'dir', '' );
$this->parseParams( $opts, (string)$par );
}
+ // Set date values
+ $dateString = $this->getRequest()->getVal( 'wpdate' );
+ if ( !empty( $dateString ) ) {
+ $dateStamp = MWTimestamp::getInstance( $dateString . ' 00:00:00' );
+ $dateStamp->setTimezone( $this->getConfig()->get( 'Localtimezone' ) );
+
+ $opts->setValue( 'year', (int)$dateStamp->format( 'Y' ) );
+ $opts->setValue( 'month', (int)$dateStamp->format( 'm' ) );
+ $opts->setValue( 'day', (int)$dateStamp->format( 'd' ) );
+ }
+
# Don't let the user get stuck with a certain date
if ( $opts->getValue( 'offset' ) || $opts->getValue( 'dir' ) == 'prev' ) {
$opts->setValue( 'year', '' );
$extraConds,
$opts->getValue( 'year' ),
$opts->getValue( 'month' ),
+ $opts->getValue( 'day' ),
$opts->getValue( 'tagfilter' ),
$opts->getValue( 'subtype' ),
$opts->getValue( 'logid' )
$pager->getPattern(),
$pager->getYear(),
$pager->getMonth(),
+ $pager->getDay(),
$pager->getFilterParams(),
$pager->getTagFilter(),
$pager->getAction()