diff options
-rw-r--r-- | pages/friends/add.php | 2 | ||||
-rw-r--r-- | pages/friends/edit.php | 2 | ||||
-rw-r--r-- | views/default/forms/friends/edit.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/pages/friends/add.php b/pages/friends/add.php index 1b7b0288f..96da26ae1 100644 --- a/pages/friends/add.php +++ b/pages/friends/add.php @@ -13,7 +13,7 @@ $title = elgg_echo('friends:collections:add'); $content = elgg_view_title($title); -$content .= elgg_view('forms/friends/edit', array( +$content .= elgg_view_form('friends/edit', array(), array( 'friends' => get_user_friends(elgg_get_logged_in_user_guid(), "", 9999) ) ); diff --git a/pages/friends/edit.php b/pages/friends/edit.php index e2c707b7c..665929319 100644 --- a/pages/friends/edit.php +++ b/pages/friends/edit.php @@ -22,7 +22,7 @@ $collection = get_access_collection($collection_id); //get all members of the collection $collection_members = get_members_of_access_collection($collection_id); -$content .= elgg_view('forms/friends/edit', array('collection' => $collection, +$content .= elgg_view_form('friends/edit', array(), array('collection' => $collection, 'collection_members' => $collection_members)); $body = elgg_view_layout('one_sidebar', array('content' => $content)); diff --git a/views/default/forms/friends/edit.php b/views/default/forms/friends/edit.php index e3bc28cfc..223ce3836 100644 --- a/views/default/forms/friends/edit.php +++ b/views/default/forms/friends/edit.php @@ -52,4 +52,4 @@ if (isset($vars['collection'])) { $form_body .= elgg_view('input/submit', array('name' => 'submit', 'value' => elgg_echo('save'))); $form_body .= "</div></div>"; -echo elgg_view('input/form', array('body' => $form_body, 'action' => "action/$action"));
\ No newline at end of file +echo $form_body;
\ No newline at end of file |