From 1ccd2862bfb46b5785db59dbfdf2ce841934a1c7 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 20 Jan 2011 01:42:21 +0000 Subject: using page owner rather than owner for better support for groups git-svn-id: http://code.elgg.org/elgg/trunk@7888 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/layout/shells/content/header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/default/layout/shells/content') diff --git a/views/default/layout/shells/content/header.php b/views/default/layout/shells/content/header.php index 4eee09b5e..7f3afc535 100644 --- a/views/default/layout/shells/content/header.php +++ b/views/default/layout/shells/content/header.php @@ -26,7 +26,7 @@ if ($context) { $buttons = $vars['buttons']; } else { if (isloggedin() && $context) { - $guid = get_loggedin_userid(); + $guid = elgg_get_page_owner_guid(); $new_link = elgg_get_array_value('new_link', $vars, "pg/$context/add/$guid/"); $params = array( 'href' => $new_link = elgg_normalize_url($new_link), -- cgit v1.2.3