summaryrefslogtreecommitdiff
path: root/includes/sys_log.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys_log.php')
-rw-r--r--includes/sys_log.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/includes/sys_log.php b/includes/sys_log.php
index 66c323c1..18a0e83c 100644
--- a/includes/sys_log.php
+++ b/includes/sys_log.php
@@ -7,24 +7,26 @@
* @param
* $message
*/
-function engelsystem_log($message) {
- global $user;
+function engelsystem_log($message)
+{
+ global $user;
- $nick = "Guest";
- if (isset($user)) {
- $nick = User_Nick_render($user);
- }
- LogEntry_create($nick, $message);
+ $nick = "Guest";
+ if (isset($user)) {
+ $nick = User_Nick_render($user);
+ }
+ LogEntry_create($nick, $message);
}
/**
* Generates a PHP Stacktrace.
*/
-function debug_string_backtrace() {
- ob_start();
- debug_print_backtrace();
- $trace = ob_get_contents();
- ob_end_clean();
+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.
@@ -35,5 +37,3 @@ function debug_string_backtrace() {
return $trace;
}
-
-?> \ No newline at end of file