From e6476a8ee9083f8a17d92dfafc17a218f58062a6 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 3 Mar 2022 15:12:14 +0100 Subject: support html override for non-html pages --- auto_prepend.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'auto_prepend.php') 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); } -- cgit v1.2.3