From c8f6c3c934df01bf969e3d91ae67f0887de10da9 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Wed, 10 Nov 2010 22:22:40 +0000 Subject: Fixes #2367: With fear and trepidation, converting events/plugin hooks to use elgg_ prefixed versions git-svn-id: http://code.elgg.org/elgg/trunk@7284 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/diagnostics/actions/download.php | 2 +- mod/diagnostics/start.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'mod/diagnostics') diff --git a/mod/diagnostics/actions/download.php b/mod/diagnostics/actions/download.php index d429f2592..3c096eb0a 100644 --- a/mod/diagnostics/actions/download.php +++ b/mod/diagnostics/actions/download.php @@ -8,7 +8,7 @@ admin_gatekeeper(); $output = elgg_echo('diagnostics:header', array(date('r'), get_loggedin_user()->name)); - $output = trigger_plugin_hook('diagnostics:report', 'system', null, $output); + $output = elgg_trigger_plugin_hook('diagnostics:report', 'system', null, $output); header("Cache-Control: public"); header("Content-Description: File Transfer"); diff --git a/mod/diagnostics/start.php b/mod/diagnostics/start.php index 46a5e9e10..8895a2eec 100644 --- a/mod/diagnostics/start.php +++ b/mod/diagnostics/start.php @@ -181,13 +181,13 @@ function diagnostics_globals_hook($hook, $entity_type, $returnvalue, $params) } // Initialise log browser -register_elgg_event_handler('init','system','diagnostics_init'); -register_elgg_event_handler('pagesetup','system','diagnostics_pagesetup'); +elgg_register_event_handler('init','system','diagnostics_init'); +elgg_register_event_handler('pagesetup','system','diagnostics_pagesetup'); -register_plugin_hook("diagnostics:report", "system", "diagnostics_basic_hook", 0); // show basics first -register_plugin_hook("diagnostics:report", "system", "diagnostics_plugins_hook", 2); // Now the plugins -register_plugin_hook("diagnostics:report", "system", "diagnostics_sigs_hook", 1); // Now the signatures +elgg_register_plugin_hook_handler("diagnostics:report", "system", "diagnostics_basic_hook", 0); // show basics first +elgg_register_plugin_hook_handler("diagnostics:report", "system", "diagnostics_plugins_hook", 2); // Now the plugins +elgg_register_plugin_hook_handler("diagnostics:report", "system", "diagnostics_sigs_hook", 1); // Now the signatures -register_plugin_hook("diagnostics:report", "system", "diagnostics_globals_hook"); // Global variables -register_plugin_hook("diagnostics:report", "system", "diagnostics_phpinfo_hook"); // PHP info +elgg_register_plugin_hook_handler("diagnostics:report", "system", "diagnostics_globals_hook"); // Global variables +elgg_register_plugin_hook_handler("diagnostics:report", "system", "diagnostics_phpinfo_hook"); // PHP info ?> \ No newline at end of file -- cgit v1.2.3