aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/diagnostics/actions/download.php3
-rw-r--r--mod/diagnostics/start.php12
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