From: Neil Kandalgaonkar Date: Tue, 2 Aug 2011 20:17:13 +0000 (+0000) Subject: added a few comments about noAuth X-Git-Tag: 1.31.0-rc.0~28478 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=40f4c33e7457557f2e87e786b382031d71e58197;p=lhc%2Fweb%2Fwiklou.git added a few comments about noAuth --- diff --git a/includes/upload/UploadStash.php b/includes/upload/UploadStash.php index d86933a172..166f9056c3 100644 --- a/includes/upload/UploadStash.php +++ b/includes/upload/UploadStash.php @@ -10,6 +10,9 @@ * We accomplish this using a database table, with ownership checking as you might expect. See SpecialUploadStash, which * implements a web interface to some files stored this way. * + * UploadStash right now is *mostly* intended to show you one user's slice of the entire stash. The user parameter is only optional + * because there are few cases where we clean out the stash from an automated script. In the future we might refactor this. + * * UploadStash represents the entire stash of temporary files. * UploadStashFile is a filestore for the actual physical disk files. * UploadFromStash extends UploadBase, and represents a single stashed file as it is moved from the stash to the regular file repository @@ -76,6 +79,7 @@ class UploadStash { /** * Get a file and its metadata from the stash. + * The noAuth param is a bit janky but is required for automated scripts which clean out the stash. * * @param $key String: key under which file information is stored * @param $noAuth Boolean (optional) Don't check authentication. Used by maintenance scripts.