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,10 +116,9 @@ TEXT;
$template = $html; $template = $html;
if (php_sapi_name() == 'cli') { if (php_sapi_name() == 'cli') {
$template = $text; $template = $text;
} else { }
if ($showHtml === null) { if ($showHtml === null) {
$showHtml = true; $showHtml = true;
}
} }
$var = print_r($var, true); $var = print_r($var, true);
if ($showHtml) { if ($showHtml) {