aboutsummaryrefslogtreecommitdiff
path: root/mod/diagnostics/actions/download.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/diagnostics/actions/download.php')
-rw-r--r--mod/diagnostics/actions/download.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/diagnostics/actions/download.php b/mod/diagnostics/actions/download.php
index 32ef5cbed..d429f2592 100644
--- a/mod/diagnostics/actions/download.php
+++ b/mod/diagnostics/actions/download.php
@@ -1,15 +1,15 @@
<?php
/**
* Elgg diagnostics
- *
+ *
* @package ElggDiagnostics
*/
admin_gatekeeper();
-
- $output = sprintf(elgg_echo('diagnostics:header'), date('r'), get_loggedin_user()->name);
+
+ $output = elgg_echo('diagnostics:header', array(date('r'), get_loggedin_user()->name));
$output = trigger_plugin_hook('diagnostics:report', 'system', null, $output);
-
+
header("Cache-Control: public");
header("Content-Description: File Transfer");
header('Content-disposition: attachment; filename=elggdiagnostic.txt');