aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 16:37:18 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 16:37:18 +0000
commitf963d6083dac495100982842fd4f07d95db2cffc (patch)
tree44f60c1e2fba871e9fb3f24f59834f6934d9f813 /views
parentaf5b59b518123a15a7182ebfe2487a9e10f67ee8 (diff)
downloadelgg-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')
-rw-r--r--views/default/layout/shells/content/header.php3
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),