diff options
author | Christian Helbling | 2014-06-13 11:16:24 +0200 |
---|---|---|
committer | Christian Helbling | 2014-06-13 11:16:24 +0200 |
commit | efbd02fc8b2705eb76391365754abb9ffbae91fd (patch) | |
tree | e8b46a30285b249aa0a42132ee96b143bac85c39 /it_debug.class | |
parent | f7e1ec87f7261e2bc9de9bdecb91b8cde81e22ea (diff) | |
download | itools-efbd02fc8b2705eb76391365754abb9ffbae91fd.tar.gz itools-efbd02fc8b2705eb76391365754abb9ffbae91fd.tar.bz2 itools-efbd02fc8b2705eb76391365754abb9ffbae91fd.zip |
use html for ED's even when url ends with .json - works fine if no application/json header is sent
Diffstat (limited to 'it_debug.class')
-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 a94d37c..458fc90 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|json/', $_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|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) = array("<span style='color:#00c'>", "</span>"); |