aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-20 01:29:10 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-20 01:29:10 +0000
commitef4f209683bb889a077021ba3e54541e1e7b5134 (patch)
tree4b717dd714b15411723783a8db7e3d584ca8a831
parent43c33492d2ab65a783c17559cf8dabd7832e9ea1 (diff)
downloadelgg-ef4f209683bb889a077021ba3e54541e1e7b5134.tar.gz
elgg-ef4f209683bb889a077021ba3e54541e1e7b5134.tar.bz2
adding 'action' to url when overriding the form action
git-svn-id: http://code.elgg.org/elgg/trunk@7887 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/views.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index c97a214a1..ef1fe984d 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -1165,6 +1165,10 @@ function elgg_view_listing($icon, $info) {
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),