Pass through request parameters in API action=edit
authorRoan Kattouw <roan.kattouw@gmail.com>
Wed, 24 Jul 2013 06:26:37 +0000 (23:26 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Wed, 24 Jul 2013 06:26:37 +0000 (23:26 -0700)
commite617dc6c8f2ce1d867ddadcd4bc3de098a84ff07
tree136799ce87acb96d5bd889132104da839cf00623
parent17ad68087c561e39f5ff4abd6ada74d1de80c22c
Pass through request parameters in API action=edit

In addition to constructing a fake request using the data the caller
gave us, also pass through any other request variables that might have
been set. This is a bit of an evil hack, but it's the only thing we can
do to make random things like wpReviewEdit in FlaggedRevs work through
the API.

Change-Id: Idab5b524b0e3daae58ab4f26466c0f6d9d8d3044
includes/api/ApiEditPage.php