MAJ en Thelia 2.3.4

This commit is contained in:
2020-05-03 08:14:07 +02:00
parent 72ddf49e60
commit 35a800ca0e
328 changed files with 9560 additions and 14163 deletions

View File

@@ -103,8 +103,9 @@ class Version
*/
public static function parse($version = null)
{
if (is_null($version))
if (is_null($version)) {
$version = \Thelia\Core\Thelia::THELIA_VERSION;
}
$pattern = "`^(?<version>
(?<major>[0-9]+)\.
@@ -112,6 +113,7 @@ class Version
(?<release>[0-9]+)
-?(?<extra>[a-zA-Z0-9]*) # extra_version will also match empty string
)$`x";
if (!preg_match($pattern, $version, $match)) {
throw new \InvalidArgumentException(
sprintf(