aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/lib/elgglib.js4
-rw-r--r--js/lib/session.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/js/lib/elgglib.js b/js/lib/elgglib.js
index 60907777b..7a329621b 100644
--- a/js/lib/elgglib.js
+++ b/js/lib/elgglib.js
@@ -193,8 +193,8 @@ elgg.provide = function(pkg, opt_context) {
elgg.assertTypeOf('string', pkg);
var parts = pkg.split('.'),
- context = opt_context || elgg.global,
- part, i;
+ context = opt_context || elgg.global,
+ part, i;
for (i = 0; i < parts.length; i += 1) {
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();
};