From 77cfdc5094fb929b412726a9c897b31c3c728c97 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Wed, 12 Sep 2012 12:21:49 +0000 Subject: [PATCH] [-] BO : function str2url fixed #PSCFV-4017 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17302 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Tools.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Tools.php b/classes/Tools.php index be4790c57..24f433440 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -981,7 +981,8 @@ class ToolsCore // If it was not possible to lowercase the string with mb_strtolower, we do it after the transformations. // This way we lose fewer special chars. - $str = strtolower($str); + if (!function_exists('mb_strtolower')) + $str = strtolower($str); return $str; }