diff options
author | msquare <msquare@notrademark.de> | 2017-06-20 16:50:21 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-06-20 16:50:21 +0200 |
commit | 56814fa2fdf58b4013f4d57c5ea87619c7122957 (patch) | |
tree | 640945769b7e9626cdf43162c786147f5c962029 /includes/sys_log.php | |
parent | a5fc5bd0979e8de1fce8a8addd351a6e7bd6aeb8 (diff) | |
parent | cd30017b97afc3c7001fbb9eb14b54dbb980b7b6 (diff) |
Merge branch 'pr/316' into feature-igel-rewrite
Diffstat (limited to 'includes/sys_log.php')
-rw-r--r-- | includes/sys_log.php | 39 |
1 files changed, 9 insertions, 30 deletions
diff --git a/includes/sys_log.php b/includes/sys_log.php index 66c323c1..c4ef890e 100644 --- a/includes/sys_log.php +++ b/includes/sys_log.php @@ -4,36 +4,15 @@ * Write a log entry. * This should be used to log user's activity. * - * @param - * $message + * @param string $message */ -function engelsystem_log($message) { - global $user; - - $nick = "Guest"; - if (isset($user)) { - $nick = User_Nick_render($user); - } - LogEntry_create($nick, $message); -} +function engelsystem_log($message) +{ + global $user; -/** - * Generates a PHP Stacktrace. - */ -function debug_string_backtrace() { - ob_start(); - 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; + $nick = "Guest"; + if (isset($user)) { + $nick = User_Nick_render($user); + } + LogEntry_create($nick, $message); } - -?>
\ No newline at end of file |