mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
7ab8875a9c
commit
8237bf51e3
1 changed files with 0 additions and 4 deletions
|
@ -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>";
|
||||
|
|
Loading…
Add table
Reference in a new issue