summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/uploader.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-31 00:03:46 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-31 00:03:46 -0700
commitdb769b76ab7b7ed54579225fca836defc7afbd11 (patch)
treedafe40aa8ffc758b6eee0ea56ca3a5b94fa8da1f /modules/gallery/controllers/uploader.php
parent5568ab24decd31e185fa1b19d29838ec3b30e570 (diff)
Expire completed uploads and introduce a text message that says how
many photos have been uploaded successfully. This is to pave the way for retry code later on.
Diffstat (limited to 'modules/gallery/controllers/uploader.php')
-rw-r--r--modules/gallery/controllers/uploader.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/gallery/controllers/uploader.php b/modules/gallery/controllers/uploader.php
index 85d344d6..fb496f60 100644
--- a/modules/gallery/controllers/uploader.php
+++ b/modules/gallery/controllers/uploader.php
@@ -102,6 +102,14 @@ class Uploader_Controller extends Controller {
}
}
+ public function status($success_count, $error_count) {
+ // The "errors" won't be properly pluralized :-/
+ print t2("Uploaded %count photo (%error errors)",
+ "Uploaded %count photos (%error errors)",
+ $success_count,
+ array("error" => $error_count));
+ }
+
public function finish() {
access::verify_csrf();