$this->limitType( $type );
$this->limitUser( $user );
$this->limitTitle( $title, $pattern );
- # Hack to recognize subpage parameter
- $_GET['type'] = $type;
+ }
+
+ function getDefaultQuery() {
+ $query = parent::getDefaultQuery();
+ $query['type'] = $this->type;
+ return $query;
}
/**
function getDefaultQuery() {
$query = parent::getDefaultQuery();
$query['target'] = $this->target;
+ $query['month'] = $this->month;
+ $query['year'] = $this->year;
return $query;
}
wfRunHooks( 'SpecialContributionsBeforeMainOutput', $id );
$wgOut->addHTML( contributionsForm( $options ) );
- # Show original selected options, don't apply them so as to allow paging
- $_GET['year'] = ''; // hack for Pager
- $_GET['month'] = ''; // hack for Pager
+
if( $skip ) {
$options['year'] = '';
$options['month'] = '';