Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 186f2a27e04f5815f7adb4edf1a4f5a0cef6dd56 1 parent fd50c52
@ataylor32 ataylor32 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/basics.php
View
2  lib/Cake/basics.php
@@ -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));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.