diff options
author | Urban Müller | 2022-03-03 15:12:14 +0100 |
---|---|---|
committer | Urban Müller | 2022-03-03 15:12:14 +0100 |
commit | e6476a8ee9083f8a17d92dfafc17a218f58062a6 (patch) | |
tree | a4d5864ca816954b7171e1a8adaaa1e749bfae71 /auto_prepend.php | |
parent | b9d1be1f3de685ed31c6f2e4efc3cb51a999fedc (diff) | |
download | itools-e6476a8ee9083f8a17d92dfafc17a218f58062a6.tar.gz itools-e6476a8ee9083f8a17d92dfafc17a218f58062a6.tar.bz2 itools-e6476a8ee9083f8a17d92dfafc17a218f58062a6.zip |
support html override for non-html pages
Diffstat (limited to 'auto_prepend.php')
-rw-r--r-- | auto_prepend.php | 7 |
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); } |