aboutsummaryrefslogtreecommitdiff
path: root/mod/diagnostics
diff options
context:
space:
mode:
Diffstat (limited to 'mod/diagnostics')
-rw-r--r--mod/diagnostics/actions/download.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/diagnostics/actions/download.php b/mod/diagnostics/actions/download.php
index bf3ede42d..32ef5cbed 100644
--- a/mod/diagnostics/actions/download.php
+++ b/mod/diagnostics/actions/download.php
@@ -7,7 +7,7 @@
admin_gatekeeper();
- $output = sprintf(elgg_echo('diagnostics:header'), date('r'), $_SESSION['user']->name);
+ $output = sprintf(elgg_echo('diagnostics:header'), date('r'), get_loggedin_user()->name);
$output = trigger_plugin_hook('diagnostics:report', 'system', null, $output);
header("Cache-Control: public");