Update self-update.php
This commit is contained in:
parent
5de8b86b53
commit
9a99d858e0
|
@ -2,13 +2,7 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 6.0)');
|
||||
$json = file_get_contents("https://api.github.com/repos/julianprieber/littlelink-custom/releases/latest") ;
|
||||
$myObj = json_decode($json);
|
||||
$Vgit = $myObj->tag_name;
|
||||
$Vlocal = 'v' . file_get_contents(base_path("version.json"));
|
||||
|
||||
$Vgit = file_get_contents("https://julianprieber.github.io/littlelink-custom/version.json");
|
||||
|
||||
if ($Vgit > $Vlocal) {
|
||||
$userver = 'https://update.littlelink-custom.com/';
|
||||
|
|
Loading…
Reference in New Issue