aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/object/album/create.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/river/object/album/create.php')
-rw-r--r--views/default/river/object/album/create.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/views/default/river/object/album/create.php b/views/default/river/object/album/create.php
index 68553309c..fcc87277d 100644
--- a/views/default/river/object/album/create.php
+++ b/views/default/river/object/album/create.php
@@ -1,13 +1,22 @@
<?php
+if (function_exists('add_to_river')) { // Elgg 1.5
+ $performed_by = get_entity($vars['item']->subject_guid);
+ $album = get_entity($vars['item']->object_guid);
+
+ $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
+ $string = sprintf(elgg_echo("album:river:created"),$url) . " ";
+ $string .= "<a href=\"" . $album->getURL() . "\">" . $album->title . "</a>";
+} else { // Elgg 1.2
$statement = $vars['statement'];
$performed_by = $statement->getSubject();
$object = $statement->getObject();
-
+
$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
$string = sprintf(elgg_echo("album:river:created"),$url) . " ";
- $string .= "<a href=\"" . $object->getURL() . "\">" . elgg_echo("album:river:item") . "</a>";
+ $string .= "<a href=\"" . $object->getURL() . "\">" . $object->title . "</a>";
+}
- echo $string;
+echo $string;
?> \ No newline at end of file