Permalink
Browse files

adding new lines for cli

  • Loading branch information...
1 parent 56a3341 commit b0280b27b1586a4a4abeef0d8a8da1ff9448835c @dogmatic69 dogmatic69 committed Feb 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/basics.php
View
@@ -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));
}
}

0 comments on commit b0280b2

Please sign in to comment.