diff options
Diffstat (limited to 'mod/groups/edit.php')
-rw-r--r-- | mod/groups/edit.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/mod/groups/edit.php b/mod/groups/edit.php index 41f43c007..a5b1df74b 100644 --- a/mod/groups/edit.php +++ b/mod/groups/edit.php @@ -15,13 +15,18 @@ $group_guid = get_input('group_guid'); $group = get_entity($group_guid); + $title = elgg_echo("groups:new"); + $body = elgg_view_title($title); + if (($group) && ($group->canEdit())) { - $body = elgg_view_layout('one_column', elgg_view("forms/groups/edit", array('entity' => $group))); + $body .= elgg_view("forms/groups/edit", array('entity' => $group)); } else { - $body = elgg_echo("groups:noaccess"); + $body .= elgg_echo("groups:noaccess"); } - page_draw(elgg_echo("groups:new"), $body); + $body = elgg_view_layout('one_column', $body); + + page_draw($title, $body); ?>
\ No newline at end of file |