diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-26 18:35:35 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-26 18:35:35 +0000 |
commit | 89d930f32cb65a3d50c69c710510aa0f370e5266 (patch) | |
tree | b115d01983108abb738298192cccf85724c05212 /engine/lib/elgglib.php | |
parent | c7d62ec9fb38eb6a35c7292a546e49d83e7eb0df (diff) | |
download | elgg-89d930f32cb65a3d50c69c710510aa0f370e5266.tar.gz elgg-89d930f32cb65a3d50c69c710510aa0f370e5266.tar.bz2 |
Moved actions out of init files
git-svn-id: https://code.elgg.org/elgg/trunk@2618 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r-- | engine/lib/elgglib.php | 10 |
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'); |