aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/pages/edit.php')
-rw-r--r--mod/pages/edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/pages/edit.php b/mod/pages/edit.php
index 23b6cc168..8e530084b 100644
--- a/mod/pages/edit.php
+++ b/mod/pages/edit.php
@@ -26,7 +26,8 @@ elgg_push_breadcrumb(elgg_echo('edit'));
$title = elgg_echo("pages:edit");
if ($page->canEdit()) {
- $content = elgg_view("forms/pages/edit", array('entity' => $page));
+ $vars = pages_prepare_form_vars($page);
+ $content = elgg_view_form('pages/edit', array(), $vars);
} else {
$content = elgg_echo("pages:noaccess");
}