From 15ee059d302f35b9377879a64f365ff501ec82bf Mon Sep 17 00:00:00 2001 From: Jens <34610614+AGuyNamedJens@users.noreply.github.com> Date: Fri, 14 Apr 2023 10:01:05 +0200 Subject: [PATCH 1/2] [Fix] Fix new installations This bugfix comments out the installation counter as it is currently an extremely bad practice and resulted in an issue with errors. --- app/Http/Controllers/HomeController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 5a511758..88129623 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -25,6 +25,8 @@ class HomeController extends Controller $this->middleware('auth'); } + /* + * TODO: This is commented due to the fact the market is a bad dependency, will be changed later. public function callHome() { if (Storage::exists('callHome')) { @@ -34,7 +36,7 @@ class HomeController extends Controller 'id' => Hash::make(URL::current()), ]); Storage::put('callHome', 'This is only used to count the installations of cpgg.'); - } + }*/ /** * @description Get the Background Color for the Days-Left-Box in HomeView From b99d6a51a62628025323a90dd63f26620317c1f6 Mon Sep 17 00:00:00 2001 From: Jens <34610614+AGuyNamedJens@users.noreply.github.com> Date: Fri, 14 Apr 2023 10:09:28 +0200 Subject: [PATCH 2/2] [FIX] Shouldn't forget caller --- app/Http/Controllers/HomeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 88129623..1d35a42c 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -107,7 +107,7 @@ class HomeController extends Controller $unit = $daysLeft < 1 ? ($hoursLeft < 1 ? null : __('hours')) : __('days'); } - $this->callhome(); + //$this->callhome(); TODO: Same as the function // RETURN ALL VALUES return view('home')->with([