Re: [SMARTY-CVS] cvs: smarty / Smarty_Compiler.class.php

From: Date: Wed, 17 Jul 2002 21:35:55 +0000
Subject: Re: [SMARTY-CVS] cvs: smarty / Smarty_Compiler.class.php
References: 1  Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-200@lists.php.net to get a copy of this message
So, this introduces a special modifier called 'smarty'? On Wed, 17 Jul 2002, Monte Ohrt wrote: > mohrt Wed Jul 17 17:34:54 2002 EDT > > Modified files: > /smarty Smarty_Compiler.class.php > Log: > got args to strstr backwards... > > > Index: smarty/Smarty_Compiler.class.php > diff -u smarty/Smarty_Compiler.class.php:1.122 smarty/Smarty_Compiler.class.php:1.123 > --- smarty/Smarty_Compiler.class.php:1.122 Wed Jul 17 17:33:12 2002 > +++ smarty/Smarty_Compiler.class.php Wed Jul 17 17:34:54 2002 > @@ -1109,7 +1109,7 @@ > $var_ref = $parts[0]; > $modifiers = isset($parts[1]) ? $parts[1] : ''; > > - if(!empty($this->default_modifiers) && > !strstr('smarty:nodefaults',$modifiers)) { > + if(!empty($this->default_modifiers) && > !strstr($modifiers,'smarty:nodefaults')) { > $_default_mod_string = implode('|',(array)$this->default_modifiers); > $modifiers = empty($modifiers) ? $_default_mod_string : $_default_mod_string . > '|' . $modifiers; > } > > > > -- > Smarty CVS Mailing List (http://cvs.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -Andrei http://www.gravitonic.com/ "You choose to do the bad things in your life; the good ones come and drag you along with them." - Michael Marshall Smith

« previous php.smarty.cvs (#200) next »