From 1a6de1b24bcc3e5743553533b38ccc324a0f1d53 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Mon, 17 Dec 2012 00:59:28 +0000 Subject: [PATCH 1/1] (bug 41330) Default to the current year in the history page filter form Change-Id: Ia510f0a24248f95c839ab88062cee1c0c0b9b6c1 --- includes/actions/HistoryAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 61de3b6328..999a14b4db 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -176,7 +176,7 @@ class HistoryAction extends FormlessAction { ) . Html::hidden( 'title', $this->getTitle()->getPrefixedDBKey() ) . "\n" . Html::hidden( 'action', 'history' ) . "\n" . - Xml::dateMenu( $year, $month ) . ' ' . + Xml::dateMenu( ( $year == null ? date( "Y" ) : $year ), $month ) . ' ' . ( $tagSelector ? ( implode( ' ', $tagSelector ) . ' ' ) : '' ) . $checkDeleted . Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) . "\n" . -- 2.20.1