From 36e160bb3939ccb95692051e317242b9093dab7f Mon Sep 17 00:00:00 2001 From: mohrt Date: Wed, 17 Jul 2002 21:34:54 +0000 Subject: [PATCH] got args to strstr backwards... --- Smarty_Compiler.class.php | 2 +- libs/Smarty_Compiler.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index 2707ae70..151a823f 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -1109,7 +1109,7 @@ class Smarty_Compiler extends Smarty { $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; } diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 2707ae70..151a823f 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1109,7 +1109,7 @@ class Smarty_Compiler extends Smarty { $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; }