summaryrefslogtreecommitdiffstats
path: root/inc/util.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2016-09-08 11:09:23 +0200
committerSimon Rettberg2016-09-08 11:09:23 +0200
commitccd48218ca74bd7cdd0b4f7a2fc82a1f31b740df (patch)
tree4249929b82c35460bedc7071315c2ab6045ba632 /inc/util.inc.php
parentgzip compression for api.php aswell (diff)
downloadslx-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/util.inc.php')
-rw-r--r--inc/util.inc.php2
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()));
}