adding new lines for cli

This commit is contained in:
dogmatic69 2013-02-16 16:28:56 +00:00
parent 56a334146e
commit b0280b27b1

View file

@ -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));
}
}