From cfaa89dd2d32bc3c17d55def95a1fd49187e1667 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 6 Feb 2011 19:36:28 +0000 Subject: Fixes #2854 removing my bad idea of auto-appending action in elgg_view_form() git-svn-id: http://code.elgg.org/elgg/trunk@8046 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/views.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/views.php b/engine/lib/views.php index 0010b8808..72cfeb2b6 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -1166,7 +1166,8 @@ function elgg_view_river_item($item) { * * * - * @param string $action The name of the action (without the leading "action/") -- e.g. "login" + * @param string $action The name of the action. An action name does not include + * the leading "action/". For example, "login" is an action name. * @param array $form_vars $vars environment passed to the "input/form" view * @param array $body_vars $vars environment passed to the "forms/$action" view * @@ -1175,10 +1176,6 @@ function elgg_view_river_item($item) { function elgg_view_form($action, $form_vars = array(), $body_vars = array()) { global $CONFIG; - if (isset($form_vars['action'])) { - $form_vars['action'] = "action/{$form_vars['action']}"; - } - $defaults = array( 'action' => $CONFIG->wwwroot . "action/$action", 'body' => elgg_view("forms/$action", $body_vars), -- cgit v1.2.3