ChangesListSpecialPage: Add urlversion and make urlversion=2 ignore defaults
authorRoan Kattouw <roan.kattouw@gmail.com>
Fri, 9 Jun 2017 19:36:26 +0000 (12:36 -0700)
committerCatrope <roan@wikimedia.org>
Tue, 13 Jun 2017 01:42:53 +0000 (01:42 +0000)
commitdc499a662f4c6cb6eefcc2426ccd3be4e57044c7
tree2534cbad3e213f4b734f5b8e4509e69cca0377a7
parenta2254d32bf816c28f2a3fb4088b5e4356cff4c48
ChangesListSpecialPage: Add urlversion and make urlversion=2 ignore defaults

This allows us to build reliable URLs that will be consistent over time
and between users (because the defaults depend on preferences,
extension presence, etC) by using urlversion=2 and specifying the
state of each filter relative to the empty state (i.e. nothing enabled).

urlversion defaults to 1, and urlversion=1 maintains the current
behavior where the parameters are interpreted relative to the
user's default state.

Bug: T166906
Change-Id: Iaf33c14e3f909092d96453e78016814aa417673a
includes/specialpage/ChangesListSpecialPage.php