diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-26 20:34:34 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-26 20:34:34 +0000 |
commit | 324896b9efc10eb78477ff3a892b1cab504eea2b (patch) | |
tree | b5ad156c07e229ce90ec4c435bb490b070f9d5d2 /mod | |
parent | c34bc60ea68b838d3da09afe04a28ac3c075d29f (diff) | |
download | elgg-324896b9efc10eb78477ff3a892b1cab504eea2b.tar.gz elgg-324896b9efc10eb78477ff3a892b1cab504eea2b.tar.bz2 |
fixed group invite form
git-svn-id: http://code.elgg.org/elgg/trunk@8493 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/lib/groups.php | 7 | ||||
-rw-r--r-- | mod/groups/views/default/forms/groups/invite.php | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/mod/groups/lib/groups.php b/mod/groups/lib/groups.php index a6f262c09..be9bbfe19 100644 --- a/mod/groups/lib/groups.php +++ b/mod/groups/lib/groups.php @@ -302,7 +302,12 @@ function groups_handle_invite_page($guid) { $title = elgg_echo('groups:invite'); if ($group && $group->canEdit()) { - $content = elgg_view_form('groups/invite', array('id' => 'invite_to_group', 'class' => 'mtm', array('entity' => $group))); + $content = elgg_view_form('groups/invite', array( + 'id' => 'invite_to_group', + 'class' => 'mtm', + ), array( + 'entity' => $group, + )); } else { $content .= elgg_echo('groups:noaccess'); } diff --git a/mod/groups/views/default/forms/groups/invite.php b/mod/groups/views/default/forms/groups/invite.php index bd6897ef2..a49bbe2fb 100644 --- a/mod/groups/views/default/forms/groups/invite.php +++ b/mod/groups/views/default/forms/groups/invite.php @@ -1,12 +1,12 @@ <?php /** - * Elgg groups plugin + * Elgg groups invite form * * @package ElggGroups */ $group = $vars['entity']; -$owner = get_entity($vars['entity']->owner_guid); +$owner = $group->getOwnerEntity(); $forward_url = $group->getURL(); $friends = elgg_get_logged_in_user_entity()->getFriends('', 0); |