summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/simple_uploader.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-19 18:08:32 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-19 18:08:32 -0800
commiteb34b301a75237a0c27b5cca01e6f96e436b7709 (patch)
treebcfc05a17b049e5452446aebe1a511c80d468539 /modules/gallery/controllers/simple_uploader.php
parent23befebd72d714bee0931f7c9f01c6adcc34aeda (diff)
Add the ability to add tags for files that are uploaded using the simple loader.
Diffstat (limited to 'modules/gallery/controllers/simple_uploader.php')
-rw-r--r--modules/gallery/controllers/simple_uploader.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gallery/controllers/simple_uploader.php b/modules/gallery/controllers/simple_uploader.php
index d43d2f9d..c6d7fc83 100644
--- a/modules/gallery/controllers/simple_uploader.php
+++ b/modules/gallery/controllers/simple_uploader.php
@@ -66,6 +66,11 @@ class Simple_Uploader_Controller extends Controller {
log::success("content", t("Added a photo"),
html::anchor("photos/$item->id", t("view photo")));
}
+
+ $tags = $this->input->post("tags");
+ if (!(empty($tags))) {
+ module::event("add_tags_to_item", $item, $tags);
+ }
} catch (Exception $e) {
Kohana::log("alert", $e->__toString());
if (file_exists($temp_filename)) {