aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-05 14:45:16 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-05 14:45:16 +0000
commit8d0fdaa33d0b37e409476d0e900b481d5c61c294 (patch)
tree39776e35fdb7f3188f87e8eda18288dd36961a28
parent524c8e140c11f1917e6658f9bc56158691cedc0e (diff)
downloadelgg-8d0fdaa33d0b37e409476d0e900b481d5c61c294.tar.gz
elgg-8d0fdaa33d0b37e409476d0e900b481d5c61c294.tar.bz2
icon crop area layout tweaked
git-svn-id: https://code.elgg.org/elgg/trunk@1709 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/profile/editicon.php12
1 files 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);