X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryMyStashedFiles.php;h=457f6c6e5c9ae371315e5c3396c2563779bcc1c8;hb=c7cd5e512c5bf053ee6498107ccb5e13c6d991bc;hp=9be5849d344f4e6f493ff4ac4d05616b9feac52b;hpb=e5facc46bc170c302438f60849041b0d6be75e82;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryMyStashedFiles.php b/includes/api/ApiQueryMyStashedFiles.php index 9be5849d34..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 @@ -92,10 +92,10 @@ class ApiQueryMyStashedFiles extends ApiQueryBase { ]; if ( isset( $prop['size'] ) ) { - $item['size'] = (int) $row->us_size; - $item['width'] = (int) $row->us_image_width; - $item['height'] = (int) $row->us_image_height; - $item['bits'] = (int) $row->us_image_bits; + $item['size'] = (int)$row->us_size; + $item['width'] = (int)$row->us_image_width; + $item['height'] = (int)$row->us_image_height; + $item['bits'] = (int)$row->us_image_bits; } if ( isset( $prop['type'] ) ) { @@ -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'; } }