Making behaviour of debug() consistent between cli and web.

This commit is contained in:
mark_story 2010-12-10 23:35:22 -05:00
parent ceca179184
commit 9bfd170443

View file

@ -116,11 +116,10 @@ TEXT;
$template = $html;
if (php_sapi_name() == 'cli') {
$template = $text;
} else {
}
if ($showHtml === null) {
$showHtml = true;
}
}
$var = print_r($var, true);
if ($showHtml) {
$var = str_replace(array('<', '>'), array('&lt;', '&gt;'), $var);