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
This commit is contained in:
nate 2007-09-16 17:26:06 +00:00
parent 7ab8875a9c
commit 8237bf51e3

View file

@ -960,10 +960,6 @@
*/
function pr($var) {
if (Configure::read() > 0) {
if ($showFrom) {
$calledFrom = debug_backtrace();
print "<strong>".substr(r(ROOT, "", $calledFrom[0]['file']), 1)."</strong> (line <strong>".$calledFrom[0]['line']."</strong>)";
}
echo "<pre>";
print_r($var);
echo "</pre>";