From 8d0fdaa33d0b37e409476d0e900b481d5c61c294 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 5 Aug 2008 14:45:16 +0000 Subject: icon crop area layout tweaked git-svn-id: https://code.elgg.org/elgg/trunk@1709 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/editicon.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/mod/profile/editicon.php b/mod/profile/editicon.php index 3dc10cc21..1d877a698 100644 --- a/mod/profile/editicon.php +++ b/mod/profile/editicon.php @@ -16,12 +16,18 @@ // Make sure we're logged in if (!isloggedin()) forward(); + $page_owner = page_owner_entity(); + if ($page_owner === false || is_null($page_owner)) { + $page_owner = $_SESSION['user']; + set_page_owner($page_owner->getGUID()); + } + // set title - $area1 = elgg_view_title(elgg_echo('profile:createicon:header')); - $area1 .= elgg_view("profile/editicon"); + $area2 = elgg_view_title(elgg_echo('profile:createicon:header')); + $area2 .= elgg_view("profile/editicon"); // Get the form and correct canvas area - $body = elgg_view_layout("one_column", $area1); + $body = elgg_view_layout("two_column_left_sidebar", '', $area2); // Draw the page page_draw(elgg_echo("profile:editicon"),$body); -- cgit v1.2.3