diff options
-rw-r--r-- | mod/profile/editicon.php | 12 |
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);
|