mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 19:54:14 +02:00
- fixed variables in 'file' attribute of {extend} tag
- fixed problems in modifiers (if mb string functions not present)
This commit is contained in:
@@ -29,7 +29,7 @@ function smarty_modifier_strip($text, $replace = ' ')
|
||||
if ($smarty->has_mb) {
|
||||
return mb_ereg_replace('!\s+!', $replace, $text, 'p');
|
||||
} else {
|
||||
return ereg_replace('!\s+!', $replace, $text, 'p');
|
||||
return preg_replace('!\s+!', $replace, $text);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user