API: Fix using the same module as generator and prop
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 5 Feb 2013 20:08:12 +0000 (15:08 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 5 Feb 2013 20:08:12 +0000 (15:08 -0500)
commit7d78386657a02b905a763722cd5be84bac7195d8
treec64c5c6f85303ded24cc0efdefad25b1cddd404d
parentb696aeab2d7e4d6daba2aa075ffefef56f478756
API: Fix using the same module as generator and prop

Change Ie2dee41e introduced a bug when using the same module as both
generator and prop, e.g.
?action=query&titles=Main_Page&generator=categories&prop=categories

The generator should be an uncached instance of the module.

Change-Id: I80c8b3a715f266a61614c1e1d02aa80b72643ec8
includes/api/ApiQuery.php