summaryrefslogtreecommitdiff
path: root/auto_prepend.php
diff options
context:
space:
mode:
Diffstat (limited to 'auto_prepend.php')
-rw-r--r--auto_prepend.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/auto_prepend.php b/auto_prepend.php
index f05a4c2..4c6a308 100644
--- a/auto_prepend.php
+++ b/auto_prepend.php
@@ -15,9 +15,7 @@ function D(...$args)
*/
function ED(...$args)
{
- if (ob_get_level() == 0 && $_SERVER['REMOTE_ADDR'])
- ob_start(); # prevent later 'headers already sent' error
- $GLOBALS['debug_noredir'] = 1;
+ it_debug::setup();
echo it_debug::dump($args);
return $args[0];
}
@@ -34,8 +32,7 @@ function EDC($var, ...$args)
{
if ($args)
{
- if (ob_get_level() == 0 && $_SERVER['REMOTE_ADDR'])
- ob_start(); # prevent later 'headers already sent' error
+ it_debug::setup();
echo it_debug::dump($args);
}