Fix exception in ApiPageSet
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 22 Jul 2013 17:08:31 +0000 (13:08 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 22 Jul 2013 18:12:38 +0000 (14:12 -0400)
commita860b9a5b56d79339ef95b7f3a332f2394702ed1
treeb5d14188eb0672fc50f165d5bf359efc32874a0e
parent462019421d7414052671400c9b1ed350cfc03da4
Fix exception in ApiPageSet

ApiPageSet is calling $this->profileOut(), then calling a function that
calls $this->profileDBIn(). Move that function to after a new
$this->profileIn().

Also, add a unit test for this situation.

Bug: 51821
Change-Id: Ib4dbfb567faadcd5e3d7d058ca6bdf8b4c83f634
includes/api/ApiPageSet.php
tests/phpunit/includes/api/query/ApiQueryBasicTest.php