API: Fix parameter interpretation in ApiFeedRecentChanges
authorBrad Jorsch <bjorsch@wikimedia.org>
Sat, 25 Apr 2015 11:20:43 +0000 (07:20 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Sat, 25 Apr 2015 11:23:51 +0000 (07:23 -0400)
commit94956a33e836812bfb9f24edb75be895c1bb9775
tree56a373c64f3a4ffcb4bc39ce92d26e23c26515ce
parentee8ccd1b545c35a162c573d62564ae7448a8768a
API: Fix parameter interpretation in ApiFeedRecentChanges

ApiFeedRecentChanges uses special page logic (eew) to do its thing.
Lacking the time at the moment to refactor the business logic, let's at
least pass the parsed parameters in via a FauxRequest instead of
allowing the special page logic to do its own interpretation of the raw
parameters.

This makes it so all recognized timestamp formats are supported (instead
of only TS_MW) and fixes the interpretation of booleans to match API
standards.

Bug: T97213
Change-Id: Ia254e36b5df2e552e283fb57ce859d6478908bd9
includes/api/ApiFeedRecentChanges.php