From ccb6d625239b59b283b4d3fc00da704ab743d74c Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 8 Feb 2011 19:52:10 +0000 Subject: Refs #2543: Updated trunk mods and views to use the new functions from previous 2 commits. git-svn-id: http://code.elgg.org/elgg/trunk@8079 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/layout/shells/content/header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/default/layout/shells/content/header.php') diff --git a/views/default/layout/shells/content/header.php b/views/default/layout/shells/content/header.php index b0bab9dc9..f3517e9ad 100644 --- a/views/default/layout/shells/content/header.php +++ b/views/default/layout/shells/content/header.php @@ -25,12 +25,12 @@ if ($context) { if (isset($vars['buttons'])) { $buttons = $vars['buttons']; } else { - if (isloggedin() && $context) { + if (elgg_is_logged_in() && $context) { $owner = elgg_get_page_owner_entity(); if (elgg_instanceof($owner, 'group')) { $guid = $owner->getGUID(); } else { - $guid = get_loggedin_userid(); + $guid = elgg_get_logged_in_user_guid(); } $new_link = elgg_get_array_value('new_link', $vars, "pg/$context/add/$guid/"); $params = array( -- cgit v1.2.3