aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/profile/edit.php8
-rw-r--r--mod/profile/editicon.php6
-rw-r--r--mod/profile/start.php2
3 files changed, 7 insertions, 9 deletions
diff --git a/mod/profile/edit.php b/mod/profile/edit.php
index 9894ce35d..91db99a2e 100644
--- a/mod/profile/edit.php
+++ b/mod/profile/edit.php
@@ -32,15 +32,13 @@ if (!$user->canEdit()) {
}
// Get edit form
-$area2 = elgg_view_title(elgg_echo('profile:edit'));
-$area2 .= elgg_view("profile/edit",array('entity' => $user));
-
-$area1 = "";
+$area1 = elgg_view_title(elgg_echo('profile:edit'));
+$area1 .= elgg_view("profile/edit",array('entity' => $user));
set_context('profile_edit');
// get the required canvas area
-$body = elgg_view_layout("one_column_with_sidebar", $area2, $area1);
+$body = elgg_view_layout("one_column_with_sidebar", $area1);
// Draw the page
page_draw(elgg_echo("profile:edit"),$body);
diff --git a/mod/profile/editicon.php b/mod/profile/editicon.php
index 65b4b10da..0e73c8d81 100644
--- a/mod/profile/editicon.php
+++ b/mod/profile/editicon.php
@@ -31,13 +31,13 @@ if (!$user->canEdit()) {
}
// set title
-$area2 = elgg_view_title(elgg_echo('profile:createicon:header'));
-$area2 .= elgg_view("profile/edit_icon", array('user' => $user));
+$area1 = elgg_view_title(elgg_echo('profile:createicon:header'));
+$area1 .= elgg_view("profile/edit_icon", array('user' => $user));
set_context('profile_edit');
// Get the form and correct canvas area
-$body = elgg_view_layout("one_column_with_sidebar", $area2);
+$body = elgg_view_layout("one_column_with_sidebar", $area1);
// Draw the page
page_draw(elgg_echo("profile:editicon"), $body);
diff --git a/mod/profile/start.php b/mod/profile/start.php
index 8a78be3d9..3ba2b3915 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -154,7 +154,7 @@ function profile_page_handler($page) {
}
$content = profile_get_user_edit_content($user, $page);
- $content = elgg_view_layout($layout, '', $content);
+ $content = elgg_view_layout($layout, $content);
break;
default: