git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13054 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot committed 2012-02-07 08:50:07 +00:00
1 parent 478c2de557
commit 9a2e5a3053
1 file changed
+3 -5
+3 -5
View File
@@ -2204,14 +2204,12 @@ FileETag INode MTime Size
*/ */
public static function checkPCREUTF8() public static function checkPCREUTF8()
{ {
if (!function_exists('preg_match')) $return = true;
return false;
$regexd = preg_replace('/[\x{0430}-\x{04FF}]/iu', '', '-АБВГД-'); $regexd = preg_replace('/[\x{0430}-\x{04FF}]/iu', '', '-АБВГД-');
if ($regexd != '--') if ($regexd != '--')
return false; $return = false;
return true; return $return;
} }
} }