Merge "Skin: Make skins aware of their registered skin name"
[lhc/web/wiklou.git] / includes / api / ApiUsageException.php
index fb49e2d..4196add 100644 (file)
@@ -152,7 +152,7 @@ class ApiUsageException extends UsageException implements ILocalizedException {
        }
 
        /**
-        * @returns ApiMessage
+        * @return ApiMessage
         */
        private function getApiMessage() {
                $errors = $this->status->getErrorsByType( 'error' );
@@ -186,7 +186,7 @@ class ApiUsageException extends UsageException implements ILocalizedException {
        /**
         * @deprecated Do not use. This only exists here because UsageException is in
         *  the inheritance chain for backwards compatibility.
-        * @inheritdoc
+        * @inheritDoc
         */
        public function getCodeString() {
                wfDeprecated( __METHOD__, '1.29' );
@@ -196,7 +196,7 @@ class ApiUsageException extends UsageException implements ILocalizedException {
        /**
         * @deprecated Do not use. This only exists here because UsageException is in
         *  the inheritance chain for backwards compatibility.
-        * @inheritdoc
+        * @inheritDoc
         */
        public function getMessageArray() {
                wfDeprecated( __METHOD__, '1.29' );
@@ -210,10 +210,10 @@ class ApiUsageException extends UsageException implements ILocalizedException {
        }
 
        /**
-        * @inheritdoc
+        * @inheritDoc
         */
        public function getMessageObject() {
-               return $this->status->getMessage();
+               return Status::wrap( $this->status )->getMessage();
        }
 
        /**