Fix I0e802a47: Don't try to send dieWithError error codes as integers

Bug: T152429
Change-Id: If882b14adc945ca49e51a912a676aee0be9c9fec
This commit is contained in:
Alex Monk 2016-12-16 11:10:31 +00:00
parent 96b8d35bff
commit 5d5645565f

View file

@ -116,7 +116,7 @@ class ApiVisualEditor extends ApiBase {
} else { // error null, code not 200
$this->dieWithError(
[ 'apierror-visualeditor-docserver-http', $response['code'] ],
$response['code']
(string) $response['code']
);
}
return $response['body'];