diff options
author | Bot <bot@myigel.name> | 2017-01-02 15:43:36 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-02 15:49:53 +0100 |
commit | d71e7bbfad2f07f82df0c515608996d250fd4182 (patch) | |
tree | 5083a17b218c08b3a699a0bf15bec926cc2dd185 /includes/sys_log.php | |
parent | 7313e15ce8236e19331fb6639a3a5b97c8f06ecd (diff) |
Formatting
Diffstat (limited to 'includes/sys_log.php')
-rw-r--r-- | includes/sys_log.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/includes/sys_log.php b/includes/sys_log.php index 18a0e83c..e4ea7e3d 100644 --- a/includes/sys_log.php +++ b/includes/sys_log.php @@ -10,7 +10,7 @@ function engelsystem_log($message) { global $user; - + $nick = "Guest"; if (isset($user)) { $nick = User_Nick_render($user); @@ -27,13 +27,13 @@ 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; + + // 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; } |