API: Always request page_is_redirect from ApiQueryInfo
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 17 Nov 2014 16:18:09 +0000 (11:18 -0500)
committerUmherirrender <umherirrender_de.wp@web.de>
Mon, 17 Nov 2014 18:35:29 +0000 (18:35 +0000)
commit9ecac6579457dddf30a2dcf2422d80a6e687de5b
tree2cbbc7f4771eefd56607708d723c35d05bb47065
parent9144673b5c95eba229aec5c2a215fa5eb777599d
API: Always request page_is_redirect from ApiQueryInfo

The ApiPageSet doesn't know for sure whether it will be resolving
redirects until it is executed, as the revids parameter may override
that (and it can't easily check before being executed because it might
never actually be executed). So ApiQueryInfo needs to just
unconditionally request page_is_redirect and only consider later whether
to try using it.

Bug: 73464
Change-Id: I2297158188dae5476c5b9b5755ea26cf5b8ae487
includes/api/ApiQueryInfo.php