missing _syntax_error function recovered. fixed minor syntax in docs

This commit is contained in:
mohrt
2001-03-08 20:19:34 +00:00
parent 48653c260d
commit 4e9938793d
3 changed files with 19 additions and 1 deletions

View File

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

View File

@@ -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#}

View File

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