[-] Classes : #PSCFI-4464, #PSCFI-4494 : BugFix : smarty plugin edited, check if function mb_split exists (Ajax, add or delete into/from cart)
This commit is contained in:
@@ -44,7 +44,11 @@ if (!function_exists('smarty_mb_str_replace')) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$parts = mb_split(preg_quote($search), $subject);
|
||||
if (function_exists('mb_split')) {
|
||||
$parts = mb_split(preg_quote($search), $subject);
|
||||
} else {
|
||||
$parts = split(preg_quote($search), $subject);
|
||||
}
|
||||
$count = count($parts) - 1;
|
||||
$subject = implode($replace, $parts);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user