From 1368785a6b6f9c946dcc5eca078540bacce71f60 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 8 Feb 2011 19:27:58 +0000 Subject: Refs #2543: Core uses the new functions from previous commit. git-svn-id: http://code.elgg.org/elgg/trunk@8078 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/widgets.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/lib/widgets.php') diff --git a/engine/lib/widgets.php b/engine/lib/widgets.php index c96c1967a..1b0bc207b 100644 --- a/engine/lib/widgets.php +++ b/engine/lib/widgets.php @@ -11,7 +11,7 @@ * Get widgets for a particular context * * The widgets are ordered for display and grouped in columns. - * $widgets = elgg_get_widgets(get_loggedin_userid(), 'dashboard'); + * $widgets = elgg_get_widgets(elgg_get_logged_in_user_guid(), 'dashboard'); * $first_column_widgets = $widgets[1]; * * @param int $user_guid The owner user GUID @@ -103,11 +103,11 @@ function elgg_can_edit_widget_layout($context, $user_guid = 0) { $user = get_entity((int)$user_guid); if (!$user) { - $user = get_loggedin_user(); + $user = elgg_get_logged_in_user_entity(); } $return = false; - if (isadminloggedin()) { + if (elgg_is_admin_logged_in()) { $return = true; } if (elgg_get_page_owner_guid() == $user->guid) { -- cgit v1.2.3