From: ewinslow Date: Tue, 22 Feb 2011 00:26:06 +0000 (+0000) Subject: forms/friends/edit no longer contains input/form logic X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=85b793b935024d22ec8518bb4a24b3ffe0e98ec3;p=lorea%2Felgg.git forms/friends/edit no longer contains input/form logic git-svn-id: http://code.elgg.org/elgg/trunk@8396 36083f99-b078-4883-b0ff-0f9b5a30f544 --- 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 .= ""; -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