mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-02-20 01:51:18 +01:00
Don't floatval matches 0 and remove v from zip name
This commit is contained in:
@@ -15,7 +15,7 @@ if (true === $ICEcoder["checkUpdates"]) {
|
||||
}
|
||||
$icvInfo = str_replace("\n", "", $icvData);
|
||||
$icv = preg_match("/^[0-9.]+/", $icvInfo, $matches);
|
||||
$icv = floatval($matches[0]);
|
||||
$icv = $matches[0];
|
||||
$icvInfo = [
|
||||
0 => $icv,
|
||||
1 => substr($icvInfo, strlen($matches[0]))
|
||||
|
||||
@@ -85,7 +85,7 @@ function openZipNew($icvInfo) {
|
||||
$source = 'ICEcoder '.$icvInfo;
|
||||
$target = '../';
|
||||
|
||||
$remoteFile = 'https://icecoder.net/ICEcoder-v'.(str_replace(" beta", "-beta",$icvInfo)).'.zip';
|
||||
$remoteFile = 'https://icecoder.net/ICEcoder-'.(str_replace(" beta", "-beta",$icvInfo)).'.zip';
|
||||
$file = "../tmp/new-version.zip";
|
||||
$fileData = getData($remoteFile,'curl','Sorry, couldn\'t get latest version zip file.');
|
||||
echo 'Storing zip file...<br>';
|
||||
|
||||
Reference in New Issue
Block a user