summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/simple_uploader.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-20 07:14:56 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-20 07:14:56 -0800
commit6a9fbffff0a89b7dad843b98d09b694126e4255d (patch)
tree9df3465a19b107e5b9958a4695324755c164b22a /modules/gallery/controllers/simple_uploader.php
parent0a1c76f9731d3ddd4738465eff46547de7825b3b (diff)
parent1a9a4a09dea9368794ded2fb8242a63744133817 (diff)
Merge branch 'master' into talmdal_dev
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)) {