mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 04:04:10 +02:00
- update of mb support in plugins
This commit is contained in:
@@ -38,8 +38,7 @@ function smarty_modifier_replace($string, $search, $replace)
|
||||
return $haystack;
|
||||
}
|
||||
}
|
||||
$smarty = Smarty::instance();
|
||||
if ($smarty->has_mb) {
|
||||
if (function_exists('mb_substr')) {
|
||||
return mb_str_replace($search, $replace, $string);
|
||||
} else {
|
||||
return str_replace($search, $replace, $string);
|
||||
|
||||
Reference in New Issue
Block a user