From 8237bf51e3761f6247b524844f3bdcaecabd1948 Mon Sep 17 00:00:00 2001 From: nate Date: Sun, 16 Sep 2007 17:26:06 +0000 Subject: [PATCH] Removing debug()-only code from pr() (Fixes undefined variable notice) git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5650 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/basics.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cake/basics.php b/cake/basics.php index 3135c2dbb..a57589d5d 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -960,10 +960,6 @@ */ function pr($var) { if (Configure::read() > 0) { - if ($showFrom) { - $calledFrom = debug_backtrace(); - print "".substr(r(ROOT, "", $calledFrom[0]['file']), 1)." (line ".$calledFrom[0]['line'].")"; - } echo "
";
 			print_r($var);
 			echo "
";