mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Making behaviour of debug() consistent between cli and web.
This commit is contained in:
parent
ceca179184
commit
9bfd170443
1 changed files with 3 additions and 4 deletions
|
@ -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('<', '>'), $var);
|
||||
|
|
Loading…
Reference in a new issue