- changed debugging handling

This commit is contained in:
Uwe.Tews
2009-11-11 22:09:06 +00:00
parent ad70b964cb
commit 7af23e23b6
4 changed files with 124 additions and 54 deletions
+3 -11
View File
@@ -332,7 +332,9 @@ class Smarty extends Smarty_Internal_TemplateBase {
// display template
echo $this->fetch ($template, $cache_id, $compile_id, $parent);
// debug output
$this->displayDebugInfo();
if ($this->debugging) {
Smarty_Internal_Debug::display_debug($this);
}
return true;
}
@@ -488,16 +490,6 @@ class Smarty extends Smarty_Internal_TemplateBase {
return set_exception_handler($handler);
}
/**
* Display debug info
*/
public function displayDebugInfo()
{
if ($this->debugging) {
Smarty_Internal_Debug::display_debug($this);
}
}
/**
* trigger Smarty error
*