Skip to content

Commit

Permalink
adding new lines for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Feb 16, 2013
1 parent 56a3341 commit b0280b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/basics.php
Expand Up @@ -241,7 +241,7 @@ function pluginSplit($name, $dotAppend = false, $plugin = null) {
*/
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));
}
}
Expand Down

0 comments on commit b0280b2

Please sign in to comment.