diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/canvas/layouts/widgets.php | 4 | ||||
-rw-r--r-- | views/foaf/page_shells/default.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index d56b009d5..8526b9d92 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -23,7 +23,7 @@ - if($_SESSION['user']->guid == page_owner() || ($owner instanceof ElggGroup && $owner->canEdit())){ + if(get_loggedin_userid() == page_owner() || ($owner instanceof ElggGroup && $owner->canEdit())){ if(get_context() == "profile") { ?> @@ -270,7 +270,7 @@ if(get_context() != "profile"){ /* on groups */ <td rowspan="2" align="left" valign="top" height="100%"> <?php - if($_SESSION['user']->guid == page_owner() || ($owner instanceof ElggGroup && $owner->canEdit())){ + if(get_loggedin_userid() == page_owner() || ($owner instanceof ElggGroup && $owner->canEdit())){ if(get_context() != "profile") { ?> diff --git a/views/foaf/page_shells/default.php b/views/foaf/page_shells/default.php index 62655ccfd..cd74ce0fe 100644 --- a/views/foaf/page_shells/default.php +++ b/views/foaf/page_shells/default.php @@ -16,7 +16,7 @@ if (!$owner = page_owner_entity()) { if (!isloggedin()) { exit; } else { - $owner = $vars['user']; + $owner = get_loggedin_user(); } } |