Add 'trace' to the data provided to Debugger formats.

Allows custom debugger output formats to display
a stack trace.
This commit is contained in:
mark_story 2011-09-28 23:26:38 -04:00
parent 9e080951b1
commit dff45740ea

View file

@ -670,6 +670,7 @@ class Debugger {
return;
}
$data['trace'] = $trace;
$data['id'] = 'cakeErr' . uniqid();
$tpl = array_merge($this->_templates['base'], $this->_templates[$this->_outputFormat]);
$insert = array('context' => join("\n", $context)) + $data;