diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-22 16:37:18 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-22 16:37:18 +0000 |
commit | f963d6083dac495100982842fd4f07d95db2cffc (patch) | |
tree | 44f60c1e2fba871e9fb3f24f59834f6934d9f813 /views/default/layout | |
parent | af5b59b518123a15a7182ebfe2487a9e10f67ee8 (diff) | |
download | elgg-f963d6083dac495100982842fd4f07d95db2cffc.tar.gz elgg-f963d6083dac495100982842fd4f07d95db2cffc.tar.bz2 |
fixed add link for all site content pages
git-svn-id: http://code.elgg.org/elgg/trunk@7899 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout')
-rw-r--r-- | views/default/layout/shells/content/header.php | 3 |
1 files changed, 3 insertions, 0 deletions
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), |