From 5a396908110b8d9ae358224f15bdbcb9a6c6dfab Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 22 Aug 2010 18:08:53 +0000 Subject: Merged [6612] from 1.7 into the trunk git-svn-id: http://code.elgg.org/elgg/trunk@6844 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../default/river/relationship/member/create.php | 50 ++++++---------------- 1 file changed, 12 insertions(+), 38 deletions(-) (limited to 'mod/groups/views/default/river/relationship/member') diff --git a/mod/groups/views/default/river/relationship/member/create.php b/mod/groups/views/default/river/relationship/member/create.php index e5e318ce0..a568920cc 100644 --- a/mod/groups/views/default/river/relationship/member/create.php +++ b/mod/groups/views/default/river/relationship/member/create.php @@ -1,40 +1,14 @@ getSubject(); - $event = $statement->getEvent(); - $object = $statement->getObject(); - - if (is_array($object)) - { - switch ($object['relationship']) - { - // Friending - case 'member' : - $user = $object['subject']; - $group = $object['object']; - - if (($user instanceof ElggUser) && ($group instanceof ElggGroup)) - { - echo "getURL()}\">{$user->name} "; - echo elgg_echo("groups:river:member"); - echo " 'getURL()}\">{$group->name}'"; - } - - break; - } - } - - -?> \ No newline at end of file + $performed_by = get_entity($vars['item']->subject_guid); + $object = get_entity($vars['item']->object_guid); + $objecturl = $object->getURL(); + + $url = "getURL()}\">{$performed_by->name}"; + $string = sprintf(elgg_echo("groups:river:member"),$url) . " "; + $string .= " getURL() . "\">" . $object->name . ""; + $string .= " ". elgg_view_friendly_time($vars['item']->posted); + $string .= ""; +?> + + \ No newline at end of file -- cgit v1.2.3