Follow-up to
1b27cee8979b2fefa65dafee237485787693eb98. This fixes
paging on Special:History, and matches the existing behavior for the
previously supported 'year'/'month' parameters.
It is possible that this should be unset in IndexPager. However, in a
quick test, other pagers that have filtering by date seem to function
correctly already (tested Special:Contributions and Special:Log).
I'm making this change in HistoryPager to avoid accidentally breaking
anything, but perhaps this should be reevaluated.
Maybe the real bug is that 'date-range-to' is not ignored when
'offset' is specified?
Bug: T220781
Change-Id: I01c309178e6d5d9c919f410c64e2b833a5750141
+ /**
+ * @inheritDoc
+ */
+ function getDefaultQuery() {
+ parent::getDefaultQuery();
+ unset( $this->mDefaultQuery['date-range-to'] );
+ return $this->mDefaultQuery;
+ }
+
/**
* This is called if a write operation is possible from the generated HTML
* @param bool $enable
/**
* This is called if a write operation is possible from the generated HTML
* @param bool $enable