mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
moved _syntax_error to Smarty_Compiler.class.php
This commit is contained in:
@@ -563,16 +563,6 @@ class Smarty
|
|||||||
$this->_error_msg="smarty error: $error_msg";
|
$this->_error_msg="smarty error: $error_msg";
|
||||||
return true;
|
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: */
|
/* vim: set expandtab: */
|
||||||
|
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -563,16 +563,6 @@ class Smarty
|
|||||||
$this->_error_msg="smarty error: $error_msg";
|
$this->_error_msg="smarty error: $error_msg";
|
||||||
return true;
|
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: */
|
/* vim: set expandtab: */
|
||||||
|
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user