]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
updated to removing more deprecation warnings (from hellekin)
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 15 Dec 2010 20:49:18 +0000 (20:49 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 15 Dec 2010 20:49:18 +0000 (20:49 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7636 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/statistics.php
mod/diagnostics/start.php
mod/groups/start.php

index 62f4ca508b23f649eeebf95f8e3cbef6c6852781..0855843177c10aa7cace333745723a92e06260b5 100644 (file)
@@ -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');
 }
index 5f0f80d623cd1d8dc772fb6884037713c96a82b9..2ede7099df2b45c50f815ebda8dcda2d683991cf 100644 (file)
@@ -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/'));
        }
 }
 
index 19cbbb74f97c7fbd1fede2b617ddf452e34b76b9..36a1964ba1a32a8d3534fdc9ce5469cd21bf60e2 100644 (file)
                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'));