From 114bf6e56152d407f660cf5060972f3bfa4fd8ff Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 4 Feb 2009 12:55:38 +0000 Subject: 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 --- engine/lib/access.php | 7 ------- engine/lib/elgglib.php | 9 ++++++++- 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'); -- cgit v1.2.3