X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryMyStashedFiles.php;h=1324f2ff498afc72349e5b5146af578822c2cdbc;hb=872dc01de3bfae0db3f952b75b95d98beb47449e;hp=0c70a8a4ef8ee9e0d1b97d306acfb9c801bda9ad;hpb=37751ee23e7b7019307eafe36f18c8450bf2e420;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryMyStashedFiles.php b/includes/api/ApiQueryMyStashedFiles.php index 0c70a8a4ef..1324f2ff49 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