mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-03 19:30:49 +02:00
- changed debugging handling
This commit is contained in:
+3
-11
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user