Re: missing _syntax_error in smarty 1.3.1?
| From: | Monte Ohrt | Date: | Thu, 08 Mar 2001 20:21:24 +0000 |
| Subject: | Re: missing _syntax_error in smarty 1.3.1? | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-352@lists.php.net to get a copy of this message | ||
Yes, my mistake. It will work if put into Smarty.class.php, but _should_
be in Smarty_Compiler.class.php. Please put there instead.
Andrei Zmievski wrote:
>
> 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. *
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/