diff --git a/config/self-update.php b/config/self-update.php index b31df63..e3cb229 100644 --- a/config/self-update.php +++ b/config/self-update.php @@ -2,7 +2,11 @@ declare(strict_types=1); -$Vgit = file_get_contents("https://julianprieber.github.io/littlelink-custom/version.json"); +if (env('JOIN_BETA') === true) { + $Vgit = file_get_contents("https://julianprieber.github.io/littlelink-custom/version.json"); +} else { + $Vgit = '0'; +} if ($Vgit > $Vlocal) { $userver = 'https://update.littlelink-custom.com/'; diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php index 7533581..3e06c42 100755 --- a/resources/views/layouts/sidebar.blade.php +++ b/resources/views/layouts/sidebar.blade.php @@ -194,18 +194,18 @@ if ($url1sb->successful() or $url2sb->successful()) {
- @if(env('NOTIFY_UPDATES') == 'all' or env('NOTIFY_UPDATES') == 'true') + @if(env('NOTIFY_UPDATES') == 'old') @if(file_exists(base_path("version.json"))) tag_name; + $Vgit = $myObj->tag_name; // Requests current version from the local version file and sets it as variable - $Vlocal = 'v' . file_get_contents(base_path("version.json")); + $Vlocal = 'v' . file_get_contents(base_path("version.json")); ?> @@ -213,7 +213,7 @@ if ($url1sb->successful() or $url2sb->successful()) { An update is available @endif @endif - @elseif(env('NOTIFY_UPDATES') == 'major') + @else