X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiUsageException.php;h=4196add2c372b5c9a59f1a8d7a041a5aeb87229c;hb=1b13888ed6bd09731f10045650714a3392bb55df;hp=47902a75b0a3cede6251c0023368f1b68baa1aca;hpb=af1eb78810933b67e332b6887f89722215b55fd1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiUsageException.php b/includes/api/ApiUsageException.php index 47902a75b0..4196add2c3 100644 --- a/includes/api/ApiUsageException.php +++ b/includes/api/ApiUsageException.php @@ -213,7 +213,7 @@ class ApiUsageException extends UsageException implements ILocalizedException { * @inheritDoc */ public function getMessageObject() { - return $this->status->getMessage(); + return Status::wrap( $this->status )->getMessage(); } /**