diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-22 16:38:30 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-22 16:38:30 +0000 |
commit | b617c9c0cd437626daaf0b1eb651ae91fdcc9f4b (patch) | |
tree | eb86ed3d0aec50d9bed887193bd0d6b493652f05 /mod | |
parent | 8b75e02e489c4f02d7749f79615187921d8c0fc4 (diff) | |
download | elgg-b617c9c0cd437626daaf0b1eb651ae91fdcc9f4b.tar.gz elgg-b617c9c0cd437626daaf0b1eb651ae91fdcc9f4b.tar.bz2 |
Fixes #1544: plugin hook for diagnostics now for entity "system"
git-svn-id: http://code.elgg.org/elgg/trunk@3966 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/diagnostics/actions/download.php | 3 | ||||
-rw-r--r-- | mod/diagnostics/start.php | 12 |
2 files changed, 8 insertions, 7 deletions
diff --git a/mod/diagnostics/actions/download.php b/mod/diagnostics/actions/download.php index 628d19115..3f7181f27 100644 --- a/mod/diagnostics/actions/download.php +++ b/mod/diagnostics/actions/download.php @@ -10,7 +10,7 @@ admin_gatekeeper(); $output = sprintf(elgg_echo('diagnostics:header'), date('r'), $_SESSION['user']->name); - $output = trigger_plugin_hook('diagnostics:report', 'all', null, $output); + $output = trigger_plugin_hook('diagnostics:report', 'system', null, $output); header("Cache-Control: public"); header("Content-Description: File Transfer"); @@ -19,4 +19,5 @@ header('Content-Length: '. strlen($output)); echo $output; + exit; ?>
\ No newline at end of file diff --git a/mod/diagnostics/start.php b/mod/diagnostics/start.php index f4d1ab2af..c114c054e 100644 --- a/mod/diagnostics/start.php +++ b/mod/diagnostics/start.php @@ -186,10 +186,10 @@ function diagnostics_globals_hook($hook, $entity_type, $returnvalue, $params) register_elgg_event_handler('init','system','diagnostics_init'); register_elgg_event_handler('pagesetup','system','diagnostics_pagesetup'); -register_plugin_hook("diagnostics:report", "all", "diagnostics_basic_hook", 0); // show basics first -register_plugin_hook("diagnostics:report", "all", "diagnostics_plugins_hook", 2); // Now the plugins -register_plugin_hook("diagnostics:report", "all", "diagnostics_sigs_hook", 1); // Now the signatures +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 -register_plugin_hook("diagnostics:report", "all", "diagnostics_globals_hook"); // Global variables -register_plugin_hook("diagnostics:report", "all", "diagnostics_phpinfo_hook"); // PHP info -?> +register_plugin_hook("diagnostics:report", "system", "diagnostics_globals_hook"); // Global variables +register_plugin_hook("diagnostics:report", "system", "diagnostics_phpinfo_hook"); // PHP info +?>
\ No newline at end of file |