summaryrefslogtreecommitdiff
path: root/it_debug.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_debug.class')
-rw-r--r--it_debug.class7
1 files changed, 1 insertions, 6 deletions
diff --git a/it_debug.class b/it_debug.class
index 9d2ff5d..0f43edb 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -88,12 +88,7 @@ function dump($args)
$noblue = "</span>";
}
else if (posix_isatty(STDOUT))
- {
- $blue = "\033[34m";
- $noblue = "\033[m";
- $red = "\033[31m";
- $nored = "\033[m";
- }
+ list($blue, $noblue, $red, $nored) = getenv('IT_ED_BRIGHT') ? array("\033[34m", "\033[m", "\033[33m", "\033[m") : array("\033[34m", "\033[m", "\033[31m", "\033[m");
@fseek(STDOUT, 0, SEEK_END); # Work around PHP bug 49819: posix_isatty seeks to start
$src = it_debug::srcline(1);