mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
adding new lines for cli
This commit is contained in:
parent
56a334146e
commit
b0280b27b1
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ if (!function_exists('pr')) {
|
|||
*/
|
||||
function pr($var) {
|
||||
if (Configure::read('debug') > 0) {
|
||||
$template = php_sapi_name() !== 'cli' ? '<pre>%s</pre>' : '%s';
|
||||
$template = php_sapi_name() !== 'cli' ? '<pre>%s</pre>' : "\n%s\n";
|
||||
echo sprintf($template, print_r($var, true));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue