diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/access.php | 7 | ||||
-rw-r--r-- | 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'); |