[-] Classes : #PSCFI-4464, #PSCFI-4494 : BugFix : smarty plugin edited, check if function mb_split exists (Ajax, add or delete into/from cart)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11508 b9a71923-0436-4b27-9f14-aed3839534dd
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