aboutsummaryrefslogtreecommitdiff
path: root/actions/upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/upload.php')
-rw-r--r--actions/upload.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/upload.php b/actions/upload.php
index c37ce2b94..78d4b7889 100644
--- a/actions/upload.php
+++ b/actions/upload.php
@@ -231,10 +231,10 @@
// successful upload so check if this is a new album and throw river event if so
$album = get_entity($container_guid);
- if ($album->new_album == 1) {
+ if ($album->new_album == TP_NEW_ALBUM) {
if (function_exists('add_to_river'))
add_to_river('river/object/album/create', 'create', $album->owner_guid, $album->guid);
- $album->new_album = 0;
+ $album->new_album = TP_OLD_ALBUM;
}
// plugins can register to be told when a Tidypics album has had images added
trigger_elgg_event('upload', 'tp_album', $album);