X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fapi%2FApiQueryMyStashedFiles.php;h=457f6c6e5c9ae371315e5c3396c2563779bcc1c8;hb=ea8961d7ee57c68f57f5df27876bb04a96f5ff84;hp=0c70a8a4ef8ee9e0d1b97d306acfb9c801bda9ad;hpb=c99b37bdc05650a38b44f18429437bab6ecc91a8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryMyStashedFiles.php b/includes/api/ApiQueryMyStashedFiles.php index 0c70a8a4ef..457f6c6e5c 100644 --- a/includes/api/ApiQueryMyStashedFiles.php +++ b/includes/api/ApiQueryMyStashedFiles.php @@ -36,7 +36,7 @@ class ApiQueryMyStashedFiles extends ApiQueryBase { $user = $this->getUser(); if ( $user->isAnon() ) { - $this->dieUsage( 'The upload stash is only available to logged-in users.', 'stashnotloggedin' ); + $this->dieWithError( 'apierror-mustbeloggedin-uploadstash', 'stashnotloggedin' ); } // Note: If user is logged in but cannot upload, they can still see @@ -145,6 +145,6 @@ class ApiQueryMyStashedFiles extends ApiQueryBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:mystashedfiles'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:mystashedfiles'; } }