summaryrefslogtreecommitdiff
path: root/includes/sys_log.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-12-26 19:26:53 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-12-26 19:26:53 +0100
commit1ec2783a8ef18c4d485e25a518d50fc4d9ea0035 (patch)
treee8ffc79d8442abffed1dcebd026f31110edf126a /includes/sys_log.php
parentdc412ba8268c41dfb5d9b31be70ef6c8d32adfb3 (diff)
use user nick render
Diffstat (limited to 'includes/sys_log.php')
-rw-r--r--includes/sys_log.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/sys_log.php b/includes/sys_log.php
index 60c765c0..cf489ffa 100644
--- a/includes/sys_log.php
+++ b/includes/sys_log.php
@@ -9,13 +9,13 @@
*/
function engelsystem_log($message) {
global $user;
-
+
if (isset($user)) {
- $nick = $user['Nick'];
+ $nick = User_Nick_render($user);
} else {
$nick = "Guest";
}
-
+
LogEntry_create($nick, $message);
}
@@ -27,14 +27,14 @@ function debug_string_backtrace() {
debug_print_backtrace();
$trace = ob_get_contents();
ob_end_clean();
-
+
// Remove first item from backtrace as it's this function which
// is redundant.
$trace = preg_replace('/^#0\s+' . __FUNCTION__ . "[^\n]*\n/", '', $trace, 1);
-
+
// Renumber backtrace items.
$trace = preg_replace('/^#(\d+)/me', '\'#\' . ($1 - 1)', $trace);
-
+
return $trace;
}