Skip to content

Commit 9a99d85

Browse files
committed
Update self-update.php
1 parent 5de8b86 commit 9a99d85

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

config/self-update.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22

33
declare(strict_types=1);
44

5-
6-
ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 6.0)');
7-
$json = file_get_contents("https://api.github.com/repos/julianprieber/littlelink-custom/releases/latest") ;
8-
$myObj = json_decode($json);
9-
$Vgit = $myObj->tag_name;
10-
$Vlocal = 'v' . file_get_contents(base_path("version.json"));
11-
5+
$Vgit = file_get_contents("https://julianprieber.github.io/littlelink-custom/version.json");
126

137
if ($Vgit > $Vlocal) {
148
$userver = 'https://update.littlelink-custom.com/';

0 commit comments

Comments
 (0)