Permalink
Browse files

Make the "pr" function use `printf` instead of `echo sprintf`

  • Loading branch information...
1 parent fd50c52 commit 186f2a27e04f5815f7adb4edf1a4f5a0cef6dd56 @ataylor32 ataylor32 committed Sep 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/basics.php
View
@@ -245,7 +245,7 @@ function pluginSplit($name, $dotAppend = false, $plugin = null) {
function pr($var) {
if (Configure::read('debug') > 0) {
$template = php_sapi_name() !== 'cli' ? '<pre>%s</pre>' : "\n%s\n";
- echo sprintf($template, print_r($var, true));
+ printf($template, print_r($var, true));
}
}

0 comments on commit 186f2a2

Please sign in to comment.