diff options
author | Simon Rettberg | 2016-09-08 11:09:23 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-08 11:09:23 +0200 |
commit | ccd48218ca74bd7cdd0b4f7a2fc82a1f31b740df (patch) | |
tree | 4249929b82c35460bedc7071315c2ab6045ba632 /inc | |
parent | gzip compression for api.php aswell (diff) | |
download | slx-admin-ccd48218ca74bd7cdd0b4f7a2fc82a1f31b740df.tar.gz slx-admin-ccd48218ca74bd7cdd0b4f7a2fc82a1f31b740df.tar.xz slx-admin-ccd48218ca74bd7cdd0b4f7a2fc82a1f31b740df.zip |
[Util] traceError: Use error_log for AJAX calls, just like API
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 a9ae384c..e6f4ca8f 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) { + if ((defined('API') && API) || (defined('AJAX') && AJAX)) { error_log('API ERROR: ' . $message); error_log(self::formatBacktracePlain(debug_backtrace())); } |