diff --git a/index.php b/index.php index d5e566a..3c2fe5c 100644 --- a/index.php +++ b/index.php @@ -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])) diff --git a/lib/updater.php b/lib/updater.php index 1f04b62..3b1e3d5 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -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...
';