mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
missing _syntax_error function recovered. fixed minor syntax in docs
This commit is contained in:
@@ -564,6 +564,15 @@ class Smarty
|
||||
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: */
|
||||
|
@@ -2338,7 +2338,7 @@ OUTPUT:
|
||||
|
||||
{* $row_height = 10, $row_width = 20, #col_div# = 2, assigned in template *}
|
||||
|
||||
{math equation="height * padding / division"
|
||||
{math equation="height * width / division"
|
||||
height=$row_height
|
||||
width=$row_width
|
||||
division=#col_div#}
|
||||
|
@@ -564,6 +564,15 @@ class Smarty
|
||||
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: */
|
||||
|
Reference in New Issue
Block a user