From 9a99d858e06190eeaf808b4ef001f493202c52b3 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Sat, 28 May 2022 14:52:37 +0200 Subject: [PATCH] Update self-update.php --- config/self-update.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/config/self-update.php b/config/self-update.php index 0a70313..b31df63 100644 --- a/config/self-update.php +++ b/config/self-update.php @@ -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/';