1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-28 12:16:03 +01:00

Build Release: Include core image by itself in release files

Also fixed an E_NOTICE pertaining to array_shift()
This commit is contained in:
Nick Liu
2020-04-04 17:53:58 -05:00
parent 729694b266
commit 594f3b543c
2 changed files with 13 additions and 11 deletions

View File

@@ -52,7 +52,8 @@ class OsHelper
public static function gitVersionToPhpVersion($gitVersion, $verFileVersion = "0")
{
$verFileVersion = array_shift(explode(" ", $verFileVersion));
$verFileVersion = explode(" ", $verFileVersion);
$verFileVersion = array_shift($verFileVersion);
$version = preg_replace("/^v/", "", $gitVersion);
$versionSplit = explode("-", $version);
if (count($versionSplit) > 1)