From 6624bbdaa9eec95e2e046defa59fe378357d88c4 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Wed, 19 Oct 2022 15:05:59 +0200 Subject: [PATCH] Updated version and event detection --- resources/views/layouts/sidebar.blade.php | 46 ++++++++--------------- resources/views/update.blade.php | 2 +- 2 files changed, 16 insertions(+), 32 deletions(-) diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php index a8ef2cc..5a1d096 100755 --- a/resources/views/layouts/sidebar.blade.php +++ b/resources/views/layouts/sidebar.blade.php @@ -236,29 +236,24 @@ if($url1sb == '200' or $url2sb == '200') { @endif @endif @elseif(env('NOTIFY_UPDATES') == 'true' or env('NOTIFY_UPDATES') === 'major' or env('NOTIFY_UPDATES') === 'all') - - @if(file_exists(base_path("version.json")) and $ServerExists == 'true') + @if(file_exists(base_path("version.json"))) @@ -317,22 +312,10 @@ $userdbs = DB::table('users')->where('id', $littlelink_current)->get(); @endif - - @if(env('NOTIFY_EVENTS') === true and $EventServerExists == 'true') + @if(env('NOTIFY_EVENTS') === true) @endif + @endif @yield('content') diff --git a/resources/views/update.blade.php b/resources/views/update.blade.php index d47934e..f6cb5e4 100644 --- a/resources/views/update.blade.php +++ b/resources/views/update.blade.php @@ -4,7 +4,7 @@