aboutsummaryrefslogtreecommitdiff
path: root/actions/addalbum.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-08-02 22:39:00 +0000
committerCash Costello <cash.costello@gmail.com>2009-08-02 22:39:00 +0000
commitbf652f34eb1546f1bff37b4caf80a161e88a416e (patch)
treedb2976cb3d86ab49ae1755e23a22f43eecee45b1 /actions/addalbum.php
parentd7c368bbce0484ecedbf6f2d4ae756d1bd32896c (diff)
downloadelgg-bf652f34eb1546f1bff37b4caf80a161e88a416e.tar.gz
elgg-bf652f34eb1546f1bff37b4caf80a161e88a416e.tar.bz2
now sending the new album notification after the first set of photos are uploaded
Diffstat (limited to 'actions/addalbum.php')
-rw-r--r--actions/addalbum.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/actions/addalbum.php b/actions/addalbum.php
index 909f04c9f..b53cf9692 100644
--- a/actions/addalbum.php
+++ b/actions/addalbum.php
@@ -41,19 +41,20 @@
$album->title = $title;
$album->description = $body;
+ // we catch the adding images to new albums in the upload action and throw a river new album event
+ $album->new_album = TP_NEW_ALBUM;
+
// Before we can set metadata, we need to save the album
if (!$album->save()) {
register_error(elgg_echo("album:error"));
forward(get_input('forward_url', $_SERVER['HTTP_REFERER'])); //failed, so forward to previous page
}
- // Now let's add tags. We can pass an array directly to the object property! Easy.
+ // Now let's add tags
if (is_array($tagarray)) {
$album->tags = $tagarray;
}
- // we catch the adding images to new albums in the upload action and throw a river new album event
- $album->new_album = TP_NEW_ALBUM;
// Success message