From c7d054987f60b5e602ce0adcd93e3243607adf7f Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 27 Jan 2009 11:59:27 +0000 Subject: Moving actions into the boot event. git-svn-id: https://code.elgg.org/elgg/trunk@2619 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 4463b6d6f..78d239a5f 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -2103,12 +2103,16 @@ register_page_handler('js','js_page_handler'); // Register an event triggered at system shutdown register_shutdown_function('__elgg_shutdown_hook'); - } + } - // Actions + function elgg_boot() { + + // Actions register_action('comments/add'); - register_action('comments/delete'); - - register_elgg_event_handler('init','system','elgg_init'); + register_action('comments/delete'); + } + + register_elgg_event_handler('init','system','elgg_init'); + register_elgg_event_handler('boot','system','elgg_boot'); ?> \ No newline at end of file -- cgit v1.2.3