From 4f3fd669adb5a65e92c426d488337097758af7a4 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Fri, 25 Feb 2011 22:45:54 +0000 Subject: Refs #2538: Functions don't need double-namespacing git-svn-id: http://code.elgg.org/elgg/trunk@8479 36083f99-b078-4883-b0ff-0f9b5a30f544 --- js/lib/session.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/lib/session.js') diff --git a/js/lib/session.js b/js/lib/session.js index 48821a260..a1454aa50 100644 --- a/js/lib/session.js +++ b/js/lib/session.js @@ -98,14 +98,14 @@ elgg.get_logged_in_user_guid = function() { /** * @return {boolean} Whether there is a user logged in */ -elgg.elgg_is_logged_in = function() { +elgg.is_logged_in = function() { return (elgg.get_logged_in_user_entity() instanceof elgg.ElggUser); }; /** * @return {boolean} Whether there is an admin logged in */ -elgg.elgg_is_admin_logged_in = function() { +elgg.is_admin_logged_in = function() { var user = elgg.get_logged_in_user_entity(); return (user instanceof elgg.ElggUser) && user.isAdmin(); }; -- cgit v1.2.3