aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 20:32:10 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 20:32:10 +0000
commitcec8a4f34681d4c2a43e0c07de0a68bc22f1b558 (patch)
tree04e3802937f8656511bb70b8a680395f2a1c2ff9 /views
parent8a04240c00b69607ff51468ae2d643b2b133f3c9 (diff)
downloadelgg-cec8a4f34681d4c2a43e0c07de0a68bc22f1b558.tar.gz
elgg-cec8a4f34681d4c2a43e0c07de0a68bc22f1b558.tar.bz2
this time got the guid correct for the add button
git-svn-id: http://code.elgg.org/elgg/trunk@7903 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/layout/shells/content/header.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/views/default/layout/shells/content/header.php b/views/default/layout/shells/content/header.php
index 3f6fc5c5a..029794408 100644
--- a/views/default/layout/shells/content/header.php
+++ b/views/default/layout/shells/content/header.php
@@ -26,8 +26,10 @@ if ($context) {
$buttons = $vars['buttons'];
} else {
if (isloggedin() && $context) {
- $guid = elgg_get_page_owner_guid();
- if (!$guid) {
+ $owner = elgg_get_page_owner();
+ if (elgg_instanceof($owner, 'group')) {
+ $guid = $owner->getGUID();
+ } else {
$guid = get_loggedin_userid();
}
$new_link = elgg_get_array_value('new_link', $vars, "pg/$context/add/$guid/");