Skip to content

Commit

Permalink
refs #356 suggestion feature installation issue solved
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Jun 1, 2018
1 parent 253dd39 commit 499728a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/Http/ViewComposers/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public function compose(View $view)

$updates = count(Updater::all());

$this->loadSuggestions();
if (!env('APP_INSTALLED', false)) {
$this->loadSuggestions();
}

$view->with([
'user' => $user,
Expand Down
2 changes: 1 addition & 1 deletion app/Http/ViewComposers/Suggestions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 499728a

Please sign in to comment.