- update of mb support in plugins

This commit is contained in:
Uwe.Tews
2009-08-10 17:52:26 +00:00
parent a693a00280
commit 0ba34008a7
8 changed files with 55 additions and 78 deletions
+1 -2
View File
@@ -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);