aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-27 11:59:27 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-27 11:59:27 +0000
commitc7d054987f60b5e602ce0adcd93e3243607adf7f (patch)
tree8fb797c990d97e1abb8de0738437122c26fd8f56
parent89d930f32cb65a3d50c69c710510aa0f370e5266 (diff)
downloadelgg-c7d054987f60b5e602ce0adcd93e3243607adf7f.tar.gz
elgg-c7d054987f60b5e602ce0adcd93e3243607adf7f.tar.bz2
Moving actions into the boot event.
git-svn-id: https://code.elgg.org/elgg/trunk@2619 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/elgglib.php14
1 files changed, 9 insertions, 5 deletions
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