moved _syntax_error to Smarty_Compiler.class.php

This commit is contained in:
mohrt
2001-03-08 20:24:38 +00:00
parent 4e9938793d
commit 301079286d
4 changed files with 18 additions and 20 deletions

View File

@@ -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: */

View File

@@ -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);
}
}
?>

View File

@@ -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: */

View File

@@ -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);
}
}
?>