]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #1544: plugin hook for diagnostics now for entity "system"
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 22 Feb 2010 16:38:30 +0000 (16:38 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 22 Feb 2010 16:38:30 +0000 (16:38 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3966 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/diagnostics/actions/download.php
mod/diagnostics/start.php

index 628d1911517a6c8238069636c499a3a2697bdee5..3f7181f27e73d4ab2b1656c174ff5e18ce50a740 100644 (file)
@@ -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
index f4d1ab2af66b614f5c1b3cffa20ea4013d1e97df..c114c054e2d4bf10b6ba0b79026f788f364efabd 100644 (file)
@@ -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