X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryStashImageInfo.php;h=1924ca0339a86092329fb0a2e05b29274e12d73b;hb=24ae4318b36f88f2dd43db5989074b65776e2cf8;hp=981cb09483596dffa8698d16d4851e02ea05091f;hpb=b26ad1ac3f9477dcf7a04705b641d5e42fbec3a4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryStashImageInfo.php b/includes/api/ApiQueryStashImageInfo.php index 981cb09483..1924ca0339 100644 --- a/includes/api/ApiQueryStashImageInfo.php +++ b/includes/api/ApiQueryStashImageInfo.php @@ -63,11 +63,10 @@ class ApiQueryStashImageInfo extends ApiQueryImageInfo { $result->addIndexedTagName( [ 'query', $this->getModuleName() ], $modulePrefix ); } // @todo Update exception handling here to understand current getFile exceptions - // @todo Internationalize the exceptions } catch ( UploadStashFileNotFoundException $e ) { - $this->dieWithError( [ 'apierror-stashedfilenotfound', wfEscapeWikiText( $e->getMessage() ) ] ); + $this->dieWithException( $e, [ 'wrap' => 'apierror-stashedfilenotfound' ] ); } catch ( UploadStashBadPathException $e ) { - $this->dieWithError( [ 'apierror-stashpathinvalid', wfEscapeWikiText( $e->getMessage() ) ] ); + $this->dieWithException( $e, [ 'wrap' => 'apierror-stashpathinvalid' ] ); } } @@ -124,6 +123,6 @@ class ApiQueryStashImageInfo extends ApiQueryImageInfo { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Stashimageinfo'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Stashimageinfo'; } }