aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-04 12:55:38 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-04 12:55:38 +0000
commit114bf6e56152d407f660cf5060972f3bfa4fd8ff (patch)
tree05980755aa2773af8774afb52b09149cca04c3ed /engine
parentf5a5a7b37580e6c5fc34d9b4c5729eeb18e5e7db (diff)
downloadelgg-114bf6e56152d407f660cf5060972f3bfa4fd8ff.tar.gz
elgg-114bf6e56152d407f660cf5060972f3bfa4fd8ff.tar.bz2
Moved the access constant definitions from access.php to elgglib.php, so they'll be loaded initially.
git-svn-id: https://code.elgg.org/elgg/trunk@2638 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/access.php7
-rw-r--r--engine/lib/elgglib.php9
2 files changed, 8 insertions, 8 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php
index d3a68fe48..02ca5906a 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -438,13 +438,6 @@
}
- /**
- * Some useful constant definitions
- */
- define('ACCESS_PRIVATE',0);
- define('ACCESS_LOGGED_IN',1);
- define('ACCESS_PUBLIC',2);
-
global $init_finished;
$init_finished = false;
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 46c813065..9633bbeb2 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -2112,7 +2112,14 @@
register_action('comments/add');
register_action('comments/delete');
}
-
+
+ /**
+ * Some useful constant definitions
+ */
+ define('ACCESS_PRIVATE',0);
+ define('ACCESS_LOGGED_IN',1);
+ define('ACCESS_PUBLIC',2);
+
register_elgg_event_handler('init','system','elgg_init');
register_elgg_event_handler('boot','system','elgg_boot');