diff options
author | Simon Rettberg | 2017-06-23 15:50:21 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-06-23 15:50:21 +0200 |
commit | 529680135a1c21797846dd9e5dfd5b66448c598d (patch) | |
tree | 9130d6527e7278357dd51551950efc9e886f6e6b /inc | |
parent | [default.css] Add slx-smallcol for table cells that should be narrow and not ... (diff) | |
download | slx-admin-529680135a1c21797846dd9e5dfd5b66448c598d.tar.gz slx-admin-529680135a1c21797846dd9e5dfd5b66448c598d.tar.xz slx-admin-529680135a1c21797846dd9e5dfd5b66448c598d.zip |
[inc/Util] Fix: Print trace in CLI mode again
Diffstat (limited to 'inc')
-rw-r--r-- | inc/util.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/util.inc.php b/inc/util.inc.php index 697ae3f9..9bcfdf13 100644 --- a/inc/util.inc.php +++ b/inc/util.inc.php @@ -12,7 +12,7 @@ class Util */ public static function traceError($message) { - if ((defined('API') && API) || (defined('AJAX') && AJAX)) { + if ((defined('API') && API) || (defined('AJAX') && AJAX) || php_sapi_name() === 'cli') { error_log('API ERROR: ' . $message); error_log(self::formatBacktracePlain(debug_backtrace())); } |