Did this a little differently, but inspired by MrBlueSky's patch: https://bugzilla.wikimedia.org/attachment.cgi?id=9655
Rather than using the $this->custom values to check as in the patch, I moved $this->filter from the specialpage class (where it wasn't being used) to the pager class (where it was being used). Probably left over from a refactor.
$out->addModuleStyles( 'mediawiki.special' );
- $this->filter = $request->getVal( 'filter', 'all' );
- $this->prefix = $request->getVal( 'prefix', '' );
-
$this->table = new AllmessagesTablePager(
$this,
array(),
$request = $this->getRequest();
- if( $request->getVal( 'filter', 'all' ) === 'all' ){
+ $this->filter = $request->getVal( 'filter', 'all' );
+ if( $this->filter === 'all' ){
$this->custom = null; // So won't match in either case
} else {
$this->custom = ($request->getVal( 'filter' ) == 'unmodified');