[-] BO : fixed error message in language form #PSCFV-8890

This commit is contained in:
Damien Metzger
2013-04-29 10:47:19 +02:00
parent 626009d157
commit 459768d1ac
3 changed files with 16 additions and 14 deletions
+6 -3
View File
@@ -1055,6 +1055,9 @@ class ValidateCore
{
return (bool)(is_string($name) && preg_match('/^[0-9a-zA-Z-_]*$/u', $name));
}
}
public static function isPrestaShopVersion($version)
{
return (preg_match('/^[0-1]\.[0-9]{1,2}(\.[0-9]{1,2}){0,2}$/', $version) && ip2long($version));
}
}