cvs: smarty / Smarty_Compiler.class.php
| From: | Monte Ohrt | Date: | Thu, 18 Jul 2002 13:29:16 +0000 |
| Subject: | cvs: smarty / Smarty_Compiler.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-204@lists.php.net to get a copy of this message | ||
mohrt Thu Jul 18 09:29:16 2002 EDT
Modified files:
/smarty Smarty_Compiler.class.php
Log:
correct the expression match for smarty:nodefaults
Index: smarty/Smarty_Compiler.class.php
diff -u smarty/Smarty_Compiler.class.php:1.124 smarty/Smarty_Compiler.class.php:1.125
--- smarty/Smarty_Compiler.class.php:1.124 Wed Jul 17 17:56:41 2002
+++ smarty/Smarty_Compiler.class.php Thu Jul 18 09:29:16 2002
@@ -1109,7 +1109,7 @@
$var_ref = $parts[0];
$modifiers = isset($parts[1]) ? $parts[1] : '';
- if(!empty($this->default_modifiers) &&
!strstr($modifiers,'smarty:nodefaults')) {
+ if(!empty($this->default_modifiers) &&
!preg_match('!(^|\|)smarty:nodefaults($|\|)!',$modifiers)) {
$_default_mod_string = implode('|',(array)$this->default_modifiers);
$modifiers = empty($modifiers) ? $_default_mod_string : $_default_mod_string . '|' .
$modifiers;
}