From 301079286d7298f78ece4ba03b3d510962608d4d Mon Sep 17 00:00:00 2001 From: mohrt Date: Thu, 8 Mar 2001 20:24:38 +0000 Subject: [PATCH] moved _syntax_error to Smarty_Compiler.class.php --- Smarty.class.php | 10 ---------- Smarty_Compiler.class.php | 9 +++++++++ libs/Smarty.class.php | 10 ---------- libs/Smarty_Compiler.class.php | 9 +++++++++ 4 files changed, 18 insertions(+), 20 deletions(-) diff --git a/Smarty.class.php b/Smarty.class.php index 27e5c80f..02ae0dd1 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -563,16 +563,6 @@ class Smarty $this->_error_msg="smarty error: $error_msg"; return true; } - -/*======================================================================*\ - Function: _syntax_error - Purpose: display Smarty syntax error -\*======================================================================*/ - function _syntax_error($error_msg, $error_type = E_USER_ERROR) - { - trigger_error("Smarty: [in " . $this->_current_file . " line " . - $this->_current_line_no . "]: syntax error: $error_msg", $error_type); - } } /* vim: set expandtab: */ diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index 68f1a6f8..32253399 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -920,6 +920,15 @@ class Smarty_Compiler extends Smarty { } } +/*======================================================================*\ + Function: _syntax_error + Purpose: display Smarty syntax error +\*======================================================================*/ + function _syntax_error($error_msg, $error_type = E_USER_ERROR) + { + trigger_error("Smarty: [in " . $this->_current_file . " line " . + $this->_current_line_no . "]: syntax error: $error_msg", $error_type); + } } ?> diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 27e5c80f..02ae0dd1 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -563,16 +563,6 @@ class Smarty $this->_error_msg="smarty error: $error_msg"; return true; } - -/*======================================================================*\ - Function: _syntax_error - Purpose: display Smarty syntax error -\*======================================================================*/ - function _syntax_error($error_msg, $error_type = E_USER_ERROR) - { - trigger_error("Smarty: [in " . $this->_current_file . " line " . - $this->_current_line_no . "]: syntax error: $error_msg", $error_type); - } } /* vim: set expandtab: */ diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 68f1a6f8..32253399 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -920,6 +920,15 @@ class Smarty_Compiler extends Smarty { } } +/*======================================================================*\ + Function: _syntax_error + Purpose: display Smarty syntax error +\*======================================================================*/ + function _syntax_error($error_msg, $error_type = E_USER_ERROR) + { + trigger_error("Smarty: [in " . $this->_current_file . " line " . + $this->_current_line_no . "]: syntax error: $error_msg", $error_type); + } } ?>