aboutsummaryrefslogtreecommitdiff
path: root/actions/ajax_upload_complete.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-06-05 12:25:10 +0000
committerCash Costello <cash.costello@gmail.com>2011-06-05 12:25:10 +0000
commitaab76ab18aa6c191dd16c3672afdacfa61ae69bb (patch)
tree644763309cdb8940ef27043ab4a07408079956d9 /actions/ajax_upload_complete.php
parentea8ea3c610582c8d564c5be38bc91b1987410a6b (diff)
downloadelgg-aab76ab18aa6c191dd16c3672afdacfa61ae69bb.tar.gz
elgg-aab76ab18aa6c191dd16c3672afdacfa61ae69bb.tar.bz2
Fixes #135 not posting the batch to the river on first upload to an album
Diffstat (limited to 'actions/ajax_upload_complete.php')
-rw-r--r--actions/ajax_upload_complete.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/actions/ajax_upload_complete.php b/actions/ajax_upload_complete.php
index b66b563e3..2abca50dc 100644
--- a/actions/ajax_upload_complete.php
+++ b/actions/ajax_upload_complete.php
@@ -12,6 +12,12 @@ if (!$album) {
}
if ($album->new_album == TP_NEW_ALBUM) {
+ $new_album = true;
+} else {
+ $new_album = false;
+}
+
+if ($album->new_album == TP_NEW_ALBUM) {
$album->new_album = TP_OLD_ALBUM;
// we throw the notification manually here so users are not told about the new album until there
@@ -38,7 +44,7 @@ if ($images) {
foreach ($images as $image) {
add_entity_relationship($image->guid, "belongs_to_batch", $batch->getGUID());
}
- if (get_plugin_setting('img_river_view', 'tidypics') == "batch") {
+ if (get_plugin_setting('img_river_view', 'tidypics') == "batch" && $new_album == false) {
add_to_river('river/object/tidypics_batch/create', 'create', $batch->getObjectOwnerGUID(), $batch->getGUID());
}
}