aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 195607318..4463b6d6f 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -2095,9 +2095,7 @@
}
function elgg_init() {
- // Important actions
- register_action('comments/add');
- register_action('comments/delete');
+
// Menu
global $CONFIG;
add_menu(elgg_echo('content:latest'), $CONFIG->wwwroot . 'dashboard/latest.php');
@@ -2105,7 +2103,11 @@
register_page_handler('js','js_page_handler');
// Register an event triggered at system shutdown
register_shutdown_function('__elgg_shutdown_hook');
- }
+ }
+
+ // Actions
+ register_action('comments/add');
+ register_action('comments/delete');
register_elgg_event_handler('init','system','elgg_init');