diff options
Diffstat (limited to 'mod/groups/views/default/river/relationship')
-rw-r--r-- | mod/groups/views/default/river/relationship/member/create.php | 23 |
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"; |