aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-04-13 16:35:22 -0700
committerBrett Profitt <brett.profitt@gmail.com>2012-04-13 16:35:22 -0700
commita965e8a7bb94d8ac870fd6b773a3aa7949db960a (patch)
treedc6304801ac375ec8be72ec761dab1ab67feb5e1 /start.php
parentd5ac522fcfd83c07c9eb879b6d7389be1b5c6dc2 (diff)
downloadelgg-a965e8a7bb94d8ac870fd6b773a3aa7949db960a.tar.gz
elgg-a965e8a7bb94d8ac870fd6b773a3aa7949db960a.tar.bz2
Using the original file name for photo title if none is specified.
Diffstat (limited to 'start.php')
-rw-r--r--start.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/start.php b/start.php
index 2ef7dcb4c..c56382655 100644
--- a/start.php
+++ b/start.php
@@ -423,14 +423,14 @@ function tidypics_notify_message($hook, $type, $result, $params) {
if ($entity->first_upload) {
$descr = $entity->description;
- $title = $entity->title;
+ $title = $entity->getTitle();
$owner = $entity->getOwnerEntity();
return elgg_echo('tidypics:newalbum', array($owner->name))
. ': ' . $title . "\n\n" . $descr . "\n\n" . $entity->getURL();
} else {
if ($entity->shouldNotify()) {
$descr = $entity->description;
- $title = $entity->title;
+ $title = $entity->getTitle();
$owner = $entity->getOwnerEntity();
return elgg_echo('tidypics:updatealbum', array($owner->name, $title)) . ': ' . $entity->getURL();