From cabf82e59c36eb9dcd5480ac54a1dd825ba16065 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 12 Apr 2008 06:09:11 +0000 Subject: [PATCH] Tweak date selector defaults --- includes/SpecialContributions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index a737b9cfca..9ba433a751 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -7,7 +7,7 @@ class ContribsPager extends ReverseChronologicalPager { public $mDefaultDirection = true; var $messages, $target; - var $namespace = '', $mDb; + var $namespace = '', $year = '', $month = '', $mDb; function __construct( $target, $namespace = false, $year = false, $month = false ) { parent::__construct(); @@ -281,13 +281,13 @@ function wfSpecialContributions( $par = null ) { wfRunHooks( 'SpecialContributionsBeforeMainOutput', $id ); - $wgOut->addHTML( contributionsForm( $options ) ); - if( $skip ) { $options['year'] = ''; $options['month'] = ''; } + $wgOut->addHTML( contributionsForm( $options ) ); + $pager = new ContribsPager( $target, $options['namespace'], $options['year'], $options['month'] ); if ( !$pager->getNumRows() ) { $wgOut->addWikiMsg( 'nocontribs' ); -- 2.20.1