From 499728a2188e2e931662a926c5a63e1f3d477cb5 Mon Sep 17 00:00:00 2001 From: cuneytsenturk Date: Fri, 1 Jun 2018 13:00:15 +0300 Subject: [PATCH] refs #356 suggestion feature installation issue solved --- app/Http/ViewComposers/Header.php | 4 +++- app/Http/ViewComposers/Suggestions.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Http/ViewComposers/Header.php b/app/Http/ViewComposers/Header.php index e71bf86eb..6ec460c4c 100644 --- a/app/Http/ViewComposers/Header.php +++ b/app/Http/ViewComposers/Header.php @@ -60,7 +60,9 @@ class Header $updates = count(Updater::all()); - $this->loadSuggestions(); + if (!env('APP_INSTALLED', false)) { + $this->loadSuggestions(); + } $view->with([ 'user' => $user, diff --git a/app/Http/ViewComposers/Suggestions.php b/app/Http/ViewComposers/Suggestions.php index efb4a65f6..37067b763 100644 --- a/app/Http/ViewComposers/Suggestions.php +++ b/app/Http/ViewComposers/Suggestions.php @@ -20,7 +20,7 @@ class Suggestions public function compose(View $view) { // No need to add suggestions in console - if (app()->runningInConsole()) { + if (app()->runningInConsole() || !env('APP_INSTALLED', false)) { return; }