From 0e6224fc047015c416a37595547f5ac4e1f2c707 Mon Sep 17 00:00:00 2001 From: messju Date: Sun, 25 Jan 2004 15:36:05 +0000 Subject: [PATCH] Smarty::_trigger_fatal_error() uses Smarty::trigger_error() now, instead of the native trigger_error()-function --- libs/Smarty.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index a470fd74..86bb9436 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -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); } }