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/plugins.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engine/lib/plugins.php') diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index 8d6daef6e..85f821315 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -775,7 +775,7 @@ function find_plugin_usersettings($plugin_id = null, $user_guid = 0) { } if ($user_guid == 0) { - $user_guid = get_loggedin_userid(); + $user_guid = elgg_get_logged_in_user_guid(); } // Get private settings for user @@ -825,7 +825,7 @@ function set_plugin_usersetting($name, $value, $user_guid = 0, $plugin_id = "") $user = get_entity($user_guid); if (!$user) { - $user = get_loggedin_user(); + $user = elgg_get_logged_in_user_entity(); } if (($user) && ($user instanceof ElggUser)) { @@ -864,7 +864,7 @@ function clear_plugin_usersetting($name, $user_guid = 0, $plugin_id = '') { $user = get_entity((int) $user_guid); if (!$user) { - $user = get_loggedin_user(); + $user = elgg_get_logged_in_user_entity(); } if (($user) && ($user instanceof ElggUser)) { @@ -897,7 +897,7 @@ function get_plugin_usersetting($name, $user_guid = 0, $plugin_id = "") { $user = get_entity($user_guid); if (!$user) { - $user = get_loggedin_user(); + $user = elgg_get_logged_in_user_entity(); } if (($user) && ($user instanceof ElggUser)) { @@ -1048,4 +1048,4 @@ function plugin_init() { elgg_register_action('admin/plugins/set_priority', '', 'admin'); } -elgg_register_event_handler('init', 'system', 'plugin_init'); \ No newline at end of file +elgg_register_event_handler('init', 'system', 'plugin_init'); -- cgit v1.2.3