cvs: smarty / Smarty_Compiler.class.php
| From: | Monte Ohrt | Date: | Wed, 17 Jul 2002 21:34:54 +0000 |
| Subject: | cvs: smarty / Smarty_Compiler.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-199@lists.php.net to get a copy of this message | ||
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;
}