aboutsummaryrefslogtreecommitdiff
path: root/start.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 /start.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 'start.php')
-rw-r--r--start.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/start.php b/start.php
index c44c3cfc1..5a225e053 100644
--- a/start.php
+++ b/start.php
@@ -354,10 +354,14 @@
$method = $params['method'];
if (($entity instanceof ElggEntity) && ($entity->getSubtype() == 'album'))
{
+ // block notification message when the album doesn't have any photos
+ if ($entity->new_album == TP_NEW_ALBUM)
+ return false;
+
$descr = $entity->description;
$title = $entity->title;
$owner = $entity->getOwnerEntity();
- return sprintf(elgg_echo('album:river:created'), $owner->name) . ' ' . $title . "\n\n" . $descr . "\n\n" . $entity->getURL();
+ return sprintf(elgg_echo('album:river:created'), $owner->name) . ': ' . $title . "\n\n" . $descr . "\n\n" . $entity->getURL();
}
return null;
}