Make current year default value in the Special:Contributions
authorAVRS Aditya Sastry <ganeshaditya1@gmail.com>
Tue, 16 Apr 2013 14:03:04 +0000 (19:33 +0530)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 23 Apr 2013 07:28:39 +0000 (09:28 +0200)
Bug: 45580
Change-Id: I720946e7a37ca5a639c3ac786fc863020929cf1a

includes/specials/SpecialContributions.php

index a0351a4..52261c9 100644 (file)
@@ -388,7 +388,7 @@ class SpecialContributions extends SpecialPage {
                }
 
                if ( !isset( $this->opts['year'] ) ) {
-                       $this->opts['year'] = '';
+                       $this->opts['year'] = gmdate( 'Y' );
                }
 
                if ( !isset( $this->opts['month'] ) ) {