From 8b8114576d40109e9a959793cbf635c319525b8a Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 8 Oct 2016 17:55:46 +0100 Subject: [PATCH] Don't use the config facade for settings --- app/Composers/AppComposer.php | 1 + resources/views/partials/footer.blade.php | 2 +- resources/views/partials/nav.blade.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Composers/AppComposer.php b/app/Composers/AppComposer.php index c136124c..5c0c2b7b 100644 --- a/app/Composers/AppComposer.php +++ b/app/Composers/AppComposer.php @@ -85,5 +85,6 @@ class AppComposer $view->withSiteTitle($this->config->get('setting.app_name')); $view->withFontSubset($this->config->get('langs.'.$this->config->get('app.locale').'.subset', 'latin')); $view->withOnlyDisruptedDays($this->config->get('setting.only_disrupted_days')); + $view->withDashboardLink($this->config->get('setting.dashboard_login_link')); } } diff --git a/resources/views/partials/footer.blade.php b/resources/views/partials/footer.blade.php index 3b44beb2..33cdd7fb 100644 --- a/resources/views/partials/footer.blade.php +++ b/resources/views/partials/footer.blade.php @@ -16,7 +16,7 @@
- @elseif(Config::get('setting.dashboard_login_link')) + @elseif($dashboard_link)
  • {{ trans('dashboard.dashboard') }}
  • @endif