diff --git a/ajax.php b/ajax.php index 9532cbf2..d7d209ca 100644 --- a/ajax.php +++ b/ajax.php @@ -215,7 +215,10 @@ class ajax_common { $this->response['error_code'] = $error_code; $this->response['error_msg'] = strip_tags(preg_replace('##i', "\n", $error_msg)); - $this->response['console_log'] = 'ajax die: ' . $this->debug_find_source(); + if (DEBUG_AJAX_DIE) + { + $this->response['console_log'] = 'ajax die: ' . $this->debug_find_source(); + } $this->send(); } @@ -340,7 +343,7 @@ class ajax_common */ function debug_find_source ($mode = '') { - if (!SQL_PREPEND_SRC_COMM) return 'src disabled'; + if (!DEBUG_AJAX_DIE) return 'src disabled'; foreach (debug_backtrace() as $trace) { if (!empty($trace['file']) && $trace['file'] !== __FILE__)