diff options
-rw-r--r-- | engine/lib/statistics.php | 4 | ||||
-rw-r--r-- | mod/diagnostics/start.php | 3 | ||||
-rw-r--r-- | mod/groups/start.php | 5 |
3 files changed, 2 insertions, 10 deletions
diff --git a/engine/lib/statistics.php b/engine/lib/statistics.php index 62f4ca508..085584317 100644 --- a/engine/lib/statistics.php +++ b/engine/lib/statistics.php @@ -110,10 +110,6 @@ function get_online_users() { * @return void */ function statistics_init() { - extend_elgg_admin_page('admin/statistics_opt/basic', 'admin/statistics'); - extend_elgg_admin_page('admin/statistics_opt/numentities', 'admin/statistics'); - extend_elgg_admin_page('admin/statistics_opt/online', 'admin/statistics'); - extend_elgg_settings_page('usersettings/statistics_opt/online', 'usersettings/statistics'); extend_elgg_settings_page('usersettings/statistics_opt/numentities', 'usersettings/statistics'); } diff --git a/mod/diagnostics/start.php b/mod/diagnostics/start.php index 5f0f80d62..2ede7099d 100644 --- a/mod/diagnostics/start.php +++ b/mod/diagnostics/start.php @@ -27,8 +27,7 @@ function diagnostics_init() function diagnostics_pagesetup() { if (elgg_get_context() == 'admin' && isadminloggedin()) { - global $CONFIG; - add_submenu_item(elgg_echo('diagnostics'), 'pg/diagnostics/'); + elgg_add_submenu_item(array('text' => elgg_echo('diagnostics'), 'href' => 'pg/diagnostics/')); } } diff --git a/mod/groups/start.php b/mod/groups/start.php index 19cbbb74f..36a1964ba 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -37,11 +37,8 @@ elgg_register_action("groups/addtogroup", $CONFIG->pluginspath . "groups/actions/addtogroup.php"); elgg_register_action("groups/invite", $CONFIG->pluginspath . "groups/actions/invite.php"); - // Use group widgets - use_widgets('groups'); - // Add a page owner handler - add_page_owner_handler('groups_page_owner_handler'); + elgg_register_plugin_hook_handler('page_owner', 'system', 'groups_page_owner_handler'); // Add some widgets elgg_register_widget_type('a_users_groups',elgg_echo('groups:widget:membership'), elgg_echo('groups:widgets:description')); |