From f963d6083dac495100982842fd4f07d95db2cffc Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 22 Jan 2011 16:37:18 +0000 Subject: fixed add link for all site content pages git-svn-id: http://code.elgg.org/elgg/trunk@7899 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/layout/shells/content/header.php | 3 +++ 1 file changed, 3 insertions(+) (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 7f3afc535..3f6fc5c5a 100644 --- a/views/default/layout/shells/content/header.php +++ b/views/default/layout/shells/content/header.php @@ -27,6 +27,9 @@ if ($context) { } else { if (isloggedin() && $context) { $guid = elgg_get_page_owner_guid(); + if (!$guid) { + $guid = get_loggedin_userid(); + } $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