diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-08 19:27:58 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-08 19:27:58 +0000 |
commit | 1368785a6b6f9c946dcc5eca078540bacce71f60 (patch) | |
tree | 1aa0857127ef2f21cc2e64a608d94359da172bab /engine/lib/usersettings.php | |
parent | 9074f002ad0603014c90b12aaaf2c51d740638e9 (diff) | |
download | elgg-1368785a6b6f9c946dcc5eca078540bacce71f60.tar.gz elgg-1368785a6b6f9c946dcc5eca078540bacce71f60.tar.bz2 |
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
Diffstat (limited to 'engine/lib/usersettings.php')
-rw-r--r-- | engine/lib/usersettings.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/usersettings.php b/engine/lib/usersettings.php index a7181626d..f74c01975 100644 --- a/engine/lib/usersettings.php +++ b/engine/lib/usersettings.php @@ -13,8 +13,8 @@ * @return void */ function usersettings_pagesetup() { - if (elgg_get_context() == "settings" && get_loggedin_userid()) { - $user = get_loggedin_user(); + if (elgg_get_context() == "settings" && elgg_get_logged_in_user_guid()) { + $user = elgg_get_logged_in_user_entity(); $params = array( 'name' => '1_account', @@ -68,7 +68,7 @@ function usersettings_page_handler($page) { $user = get_user_by_username($page[1]); elgg_set_page_owner_guid($user->guid); } else { - elgg_set_page_owner_guid(get_loggedin_userid()); + elgg_set_page_owner_guid(elgg_get_logged_in_user_guid()); } require($path); @@ -86,4 +86,4 @@ function usersettings_init() { /// Register init function elgg_register_event_handler('init', 'system', 'usersettings_init'); -elgg_register_event_handler('pagesetup', 'system', 'usersettings_pagesetup');
\ No newline at end of file +elgg_register_event_handler('pagesetup', 'system', 'usersettings_pagesetup'); |