aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/edit.php')
-rw-r--r--mod/profile/edit.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/profile/edit.php b/mod/profile/edit.php
index 046c9716f..9db4848dd 100644
--- a/mod/profile/edit.php
+++ b/mod/profile/edit.php
@@ -22,14 +22,17 @@
// Get form, if we're allowed to edit
if ($user->canEdit()) {
- $body = elgg_view("profile/edit",array('entity' => $user));
+ $area1 = elgg_view("profile/edit",array('entity' => $user));
} else {
- $body = elgg_echo("profile:noaccess");
+ $area1 = elgg_echo("profile:noaccess");
}
+ // get the required canvas area
+ $body = elgg_view_layout("one_column", $area1);
+
// Draw the page
page_draw(elgg_echo("profile:edit"),$body);