aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/river/relationship
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 18:33:00 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 18:33:00 +0000
commit57d865b09630ba9ea9cdf9a16067c01c818564dc (patch)
treeb505b1d60319e3dbc3c179a021c9ac92cb361c60 /mod/groups/views/default/river/relationship
parentd09ee2588c8a4ebf279a03368776d073ba9576da (diff)
downloadelgg-57d865b09630ba9ea9cdf9a16067c01c818564dc.tar.gz
elgg-57d865b09630ba9ea9cdf9a16067c01c818564dc.tar.bz2
updated group member and group forum topics to new river
git-svn-id: http://code.elgg.org/elgg/trunk@7661 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/river/relationship')
-rw-r--r--mod/groups/views/default/river/relationship/member/create.php23
1 files changed, 13 insertions, 10 deletions
diff --git a/mod/groups/views/default/river/relationship/member/create.php b/mod/groups/views/default/river/relationship/member/create.php
index 430e95839..5123964c3 100644
--- a/mod/groups/views/default/river/relationship/member/create.php
+++ b/mod/groups/views/default/river/relationship/member/create.php
@@ -1,14 +1,17 @@
<?php
+/**
+ * Group join river view.
+ */
- $performed_by = get_entity($vars['item']->subject_guid);
- $object = get_entity($vars['item']->object_guid);
- $objecturl = $object->getURL();
+$object = $vars['item']->getObjectEntity();
- $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
- $string = elgg_echo("groups:river:member", array($url)) . " ";
- $string .= " <a href=\"" . $object->getURL() . "\">" . $object->name . "</a>";
- $string .= " <span class='entity-subtext'>". elgg_view_friendly_time($vars['item']->posted);
- $string .= "</span>";
-?>
+$params = array(
+ 'href' => $object->getURL(),
+ 'text' => $object->name,
+);
+$link = elgg_view('output/url', $params);
-<?php echo $string; ?> \ No newline at end of file
+
+echo elgg_echo('groups:river:join');
+
+echo " $link";