}
// 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);
}
// 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);
}
$content = profile_get_user_edit_content($user, $page);
- $content = elgg_view_layout($layout, '', $content);
+ $content = elgg_view_layout($layout, $content);
break;
default: