aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/pages/views/default/pages/breadcrumbs.php2
-rw-r--r--views/foaf/user/default.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/pages/views/default/pages/breadcrumbs.php b/mod/pages/views/default/pages/breadcrumbs.php
index 868a3eeb5..0ab175339 100644
--- a/mod/pages/views/default/pages/breadcrumbs.php
+++ b/mod/pages/views/default/pages/breadcrumbs.php
@@ -5,7 +5,7 @@
* @package ElggPages
*/
-$page_owner = $vars['page_owner'];
+$page_owner = elgg_get_page_owner_guid();
$parent = $vars['parent'];
$breadcrumbs = '';
diff --git a/views/foaf/user/default.php b/views/foaf/user/default.php
index bcba3b3c2..b2da08f29 100644
--- a/views/foaf/user/default.php
+++ b/views/foaf/user/default.php
@@ -6,7 +6,7 @@
* @subpackage Core
*/
-$friends=get_user_friends($vars['page_owner'],$subtype = "",$limit = 10000,$offset = 0);
+$friends=get_user_friends(elgg_get_page_owner_guid(), $subtype = "", $limit = 10000, $offset = 0);
foreach ($friends as $friend) {
?>