diff --git a/cake/libs/debugger.php b/cake/libs/debugger.php index cb3ae4d7f..bab9ae2a9 100644 --- a/cake/libs/debugger.php +++ b/cake/libs/debugger.php @@ -108,7 +108,7 @@ class Debugger extends Object { } /** * Formats and outputs the passed var - * + * * @param $var mixed the variable to dump * @return void * @see exportVar @@ -121,7 +121,7 @@ class Debugger extends Object { } /** * Neatly logs a given var - * + * * @param $var mixed Variable or content to log * @param $level int type of log to use. Defaults to LOG_DEBUG * @return void @@ -462,43 +462,41 @@ class Debugger extends Object { * @access private */ function __output($level, $error, $code, $helpCode, $description, $file, $line, $kontext) { - $_this = Debugger::getInstance(); - - $files = $_this->trace(array('start' => 2, 'format' => 'points')); - $listing = $_this->excerpt($files[0]['file'], $files[0]['line'] - 1, 1); - $trace = $_this->trace(array('start' => 2, 'depth' => '20')); + $files = $this->trace(array('start' => 2, 'format' => 'points')); + $listing = $this->excerpt($files[0]['file'], $files[0]['line'] - 1, 1); + $trace = $this->trace(array('start' => 2, 'depth' => '20')); $context = array(); foreach ((array)$kontext as $var => $value) { - $context[] = "\${$var}\t=\t" . $_this->exportVar($value, 1); + $context[] = "\${$var}\t=\t" . $this->exportVar($value, 1); } - switch ($_this->__outputFormat) { + switch ($this->__outputFormat) { default: case 'js': - $link = "document.getElementById(\"CakeStackTrace" . count($_this->errors) . "\").style.display = (document.getElementById(\"CakeStackTrace" . count($_this->errors) . "\").style.display == \"none\" ? \"\" : \"none\")"; + $link = "document.getElementById(\"CakeStackTrace" . count($this->errors) . "\").style.display = (document.getElementById(\"CakeStackTrace" . count($this->errors) . "\").style.display == \"none\" ? \"\" : \"none\")"; $out = "{$error} ({$code}): {$description} [{$file}, line {$line}]"; if (Configure::read() > 0) { debug($out, false, false); - echo '