summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-07-13 12:16:52 -0700
committerBharat Mediratta <bharat@menalto.com>2010-07-13 12:16:52 -0700
commit5eb4b8ff6cae33d83cfef8ea3d41cba4352e65d8 (patch)
treea22cd00a94d30e6a22e09d26a3f8a6319a5f8366 /modules
parentb7cc677c3db281182ad2a6f2bdaada5a0cd2dbcb (diff)
Check for the existence of uploadify() in the add_photos_form. The HTML uploader won't have that field.
Diffstat (limited to 'modules')
-rw-r--r--modules/tag/helpers/tag_event.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/tag/helpers/tag_event.php b/modules/tag/helpers/tag_event.php
index 7fe9fba3..0cc2170c 100644
--- a/modules/tag/helpers/tag_event.php
+++ b/modules/tag/helpers/tag_event.php
@@ -106,6 +106,10 @@ class tag_event_Core {
}
static function add_photos_form($album, $form) {
+ if (!isset($group->uploadify)) {
+ return;
+ }
+
$group = $form->add_photos;
$group->input("tags")
->label(t("Add tags to all uploaded files"))
@@ -125,6 +129,10 @@ class tag_event_Core {
}
static function add_photos_form_completed($album, $form) {
+ if (!isset($group->uploadify)) {
+ return;
+ }
+
foreach (explode(",", $form->add_photos->tags->value) as $tag_name) {
$tag_name = trim($tag_name);
if ($tag_name) {