X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiUsageException.php;h=c200dcba6fd6f5077016a9120cf7bc999ef05150;hb=3844fd9d639ed67cd3519eab2d7db440100cdd26;hp=17655ec1c3de27737db1fc322d51bd4e5095237e;hpb=5256bb8ce2da1390f84ef535d990129eebd74fd2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiUsageException.php b/includes/api/ApiUsageException.php index 17655ec1c3..c200dcba6f 100644 --- a/includes/api/ApiUsageException.php +++ b/includes/api/ApiUsageException.php @@ -16,7 +16,6 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @defgroup API API */ /** @@ -152,7 +151,7 @@ class ApiUsageException extends UsageException implements ILocalizedException { } /** - * @returns ApiMessage + * @return ApiMessage */ private function getApiMessage() { $errors = $this->status->getErrorsByType( 'error' ); @@ -213,7 +212,7 @@ class ApiUsageException extends UsageException implements ILocalizedException { * @inheritDoc */ public function getMessageObject() { - return $this->status->getMessage(); + return Status::wrap( $this->status )->getMessage(); } /**