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

From: Date: Wed, 17 Jul 2002 21:39:59 +0000
Subject: Re: [SMARTY-CVS] cvs: smarty / Smarty_Compiler.class.php
References: 1 2  Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-201@lists.php.net to get a copy of this message
Yes and so far it has only one purpose, and that is cancelling the default modifiers. I don't forsee another need for it anytime soon, but if the need arises we can expand how this works. For now, it is a quick string check and removal. Using a smarty modifier keeps flexibility for the future anyways. Monte Andrei Zmievski wrote:
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
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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