diff options
author | Christian A. Weber | 2014-07-30 23:49:04 +0200 |
---|---|---|
committer | Christian A. Weber | 2014-07-30 23:49:04 +0200 |
commit | 4913c5d128abe3987bb16e462dad6543bf522f63 (patch) | |
tree | 8ff1f25ab0c669fa8775da6157ee383237046e26 | |
parent | 47c5a709980480406d7db3eb414a0df167c75b1d (diff) | |
download | itools-4913c5d128abe3987bb16e462dad6543bf522f63.tar.gz itools-4913c5d128abe3987bb16e462dad6543bf522f63.tar.bz2 itools-4913c5d128abe3987bb16e462dad6543bf522f63.zip |
treat .json pages (api etc.) as non-html for ED()
-rw-r--r-- | it_debug.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class index b7df95b..fe2cd38 100644 --- a/it_debug.class +++ b/it_debug.class @@ -78,7 +78,7 @@ static function srcline($stackoffs = 0) */ static function dump($args) { - if ((preg_match('/csv|txt|gif|jpg/', $_SERVER['PHP_SELF']) || preg_grep('#text/(calendar|css|javascript|json|plain|rfc822|xml)|application/#', headers_list()) || $GLOBALS['debug_edplain']) && !$GLOBALS['debug_edhtml']) + if ((preg_match('/csv|json|txt|gif|jpg/', $_SERVER['PHP_SELF']) || preg_grep('#text/(calendar|css|javascript|json|plain|rfc822|xml)|application/#', headers_list()) || $GLOBALS['debug_edplain']) && !$GLOBALS['debug_edhtml']) $plain = 1; else if ($_SERVER['REMOTE_ADDR']) list($blue, $noblue, $htmlok) = array("<span style='color:#00c'>", "</span>", 1); |