summaryrefslogtreecommitdiff
path: root/it_debug.class
diff options
context:
space:
mode:
authorUrban Müller2022-05-20 16:02:31 +0200
committerUrban Müller2022-05-20 16:02:31 +0200
commit1ad19406e5458d102bb3cf2091d4a1c575b7955e (patch)
treef68e055c348a21bdf0ffbb8f9d7f19ee00ffd4dc /it_debug.class
parent4dc711e8029d67a75d4f0cc28304195eb4f9b673 (diff)
downloaditools-1ad19406e5458d102bb3cf2091d4a1c575b7955e.tar.gz
itools-1ad19406e5458d102bb3cf2091d4a1c575b7955e.tar.bz2
itools-1ad19406e5458d102bb3cf2091d4a1c575b7955e.zip
supprt ED() without args for stackdump
Diffstat (limited to 'it_debug.class')
-rw-r--r--it_debug.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it_debug.class b/it_debug.class
index bddd63b..a504be8 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -96,6 +96,7 @@ static function dump($args, $p = [])
{
$p += ['html' => !EDC('edplain') && (self::$force_html || $_SERVER['REMOTE_ADDR']), 'color' => true];
$htmlspecialchars = array("&" => "&amp;", '<' => "&lt;", '>' => "&gt;");
+ $args = count($args) ? $args : [it_debug::backtrace(['skiplevels' => 2])];
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'])
;