mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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,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) {
|
||||||
|
|
Loading…
Reference in a new issue