Smarty::_trigger_fatal_error() uses Smarty::trigger_error() now,

instead of the native trigger_error()-function
This commit is contained in:
messju
2004-01-25 15:36:05 +00:00
parent f8011f6acb
commit 0e6224fc04

View File

@@ -1864,13 +1864,12 @@ class Smarty
if(isset($file) && isset($line)) {
$info = ' ('.basename($file).", line $line)";
} else {
$info = null;
$info = '';
}
if (isset($tpl_line) && isset($tpl_file)) {
trigger_error("Smarty error: [in " . $tpl_file . " line " .
$tpl_line . "]: $error_msg$info", $error_type);
$this->trigger_error('[in ' . $tpl_file . ' line ' . $tpl_line . "]: $error_msg$info", $error_type);
} else {
trigger_error("Smarty error: $error_msg$info", $error_type);
$this->trigger_error($error_msg . $info, $error_type);
}
}