diff options
Diffstat (limited to 'engine/lib/extender.php')
-rw-r--r-- | engine/lib/extender.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/extender.php b/engine/lib/extender.php index 8df207767..f0fc98d12 100644 --- a/engine/lib/extender.php +++ b/engine/lib/extender.php @@ -122,14 +122,14 @@ function import_extender_plugin_hook($hook, $entity_type, $returnvalue, $params) * @return true|false */ function can_edit_extender($extender_id, $type, $user_guid = 0) { - if (!isloggedin()) { + if (!elgg_is_logged_in()) { return false; } $user_guid = (int)$user_guid; $user = get_entity($user_guid); if (!$user) { - $user = get_loggedin_user(); + $user = elgg_get_logged_in_user_entity(); } $functionname = "get_{$type}"; @@ -236,4 +236,4 @@ function get_extender_url(ElggExtender $extender) { } /** Register the hook */ -elgg_register_plugin_hook_handler("import", "all", "import_extender_plugin_hook", 2);
\ No newline at end of file +elgg_register_plugin_hook_handler("import", "all", "import_extender_plugin_hook", 2); |