aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-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),