Fix ApiBase::getErrorFromStatus() and ApiMessages
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 11 May 2016 18:21:08 +0000 (14:21 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 11 May 2016 18:21:08 +0000 (14:21 -0400)
commitf2874e2355ee8a54059dac8678937b4fb49af64f
treeeb1dea8bb84528656f7e71731d0c14a8820a55af
parentb03262c64bd635061f47e5833a682747f35ed77a
Fix ApiBase::getErrorFromStatus() and ApiMessages

When the code was written, $status->getErrorsArray() would return the
Message objects unchanged. But I0deaa988 broke that and apparently
didn't bother fixing callers.

Now that I'm trying to actually use it for something, I find it's
broken, so I fixed it.

Change-Id: I763729c5bdd63448b50229774ef1f9d12cfb795d
includes/api/ApiBase.php