Re: [SMARTY] $smarty.const seems broken in 2.4.1...
| From: | M Mohr | Date: | Sun, 09 Feb 2003 19:04:02 +0000 |
| Subject: | Re: [SMARTY] $smarty.const seems broken in 2.4.1... | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7608@lists.php.net to get a copy of this message | ||
On Sun, Feb 09, 2003 at 08:02:10PM +0100, M Mohr wrote:
> On Sun, Feb 09, 2003 at 06:32:46PM +0200, Ruslan Savchyshyn wrote:
> > $smarty.const._SOME_CONST seems broken in 2.4.1...
> > But they work ok in 2.4.0.
> >
> > Any comments?
>
> yes, the problem is some missing quotes in line 1777
ehem, sorry i forgot to say "in Smarty_Compiler.class.php" :)
> here is a diff to make them work again:
>
> 1777c1777
> < $compiled_ref = 'defined(' . substr($indexes[0],1)
> . ') ? ' . substr($indexes[0],1) . ' : null';
> ---
> > $compiled_ref = 'defined(\'' .
> > substr($indexes[0],1) . '\') ? ' . substr($indexes[0],1) . ' : null';
>
> have fun
> messju
>
> > ------------------------
> > Ruslan aka SavaJr
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Shareware-Link: Folge des Patents der British Telekom auf Hyperlinks:
US-A-4,873,662
Raphael H. Becker