Re: missing _syntax_error in smarty 1.3.1?
| From: | Andrei Zmievski | Date: | Thu, 08 Mar 2001 20:17:20 +0000 |
| Subject: | Re: missing _syntax_error in smarty 1.3.1? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-351@lists.php.net to get a copy of this message | ||
On Thu, 08 Mar 2001, Monte Ohrt wrote:
> It IS missing!
>
> For a quick fix, paste this at the bottom of the Smarty.class.php file,
> right after the _set_error_msg function:
>
> /*======================================================================*\
> 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);
> }
Shouldn't this be only in Smarty_Compiler.class.php?
-Andrei
* Gun manufacturers don't make bad products, bad parents do. *