Don't use the config facade for settings

This commit is contained in:
James Brooks
2016-10-08 17:55:46 +01:00
parent a5d3a71063
commit 8b8114576d
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -85,5 +85,6 @@ class AppComposer
$view->withSiteTitle($this->config->get('setting.app_name')); $view->withSiteTitle($this->config->get('setting.app_name'));
$view->withFontSubset($this->config->get('langs.'.$this->config->get('app.locale').'.subset', 'latin')); $view->withFontSubset($this->config->get('langs.'.$this->config->get('app.locale').'.subset', 'latin'));
$view->withOnlyDisruptedDays($this->config->get('setting.only_disrupted_days')); $view->withOnlyDisruptedDays($this->config->get('setting.only_disrupted_days'));
$view->withDashboardLink($this->config->get('setting.dashboard_login_link'));
} }
} }
+1 -1
View File
@@ -16,7 +16,7 @@
</div> </div>
<div class="col-sm-8"> <div class="col-sm-8">
<ul class="list-inline"> <ul class="list-inline">
@if($current_user || Config::get('setting.dashboard_login_link')) @if($current_user || $dashboard_link)
<li> <li>
<a class="btn btn-link" href="/dashboard">{{ trans('dashboard.dashboard') }}</a> <a class="btn btn-link" href="/dashboard">{{ trans('dashboard.dashboard') }}</a>
</li> </li>
+1 -1
View File
@@ -19,7 +19,7 @@
<li><a href="{{ route('auth.logout') }}">{{ trans('dashboard.logout') }}</a></li> <li><a href="{{ route('auth.logout') }}">{{ trans('dashboard.logout') }}</a></li>
</ul> </ul>
</li> </li>
@elseif(Config::get('setting.dashboard_login_link')) @elseif($dashboard_link)
<li><a href="/dashboard">{{ trans('dashboard.dashboard') }}</a></li> <li><a href="/dashboard">{{ trans('dashboard.dashboard') }}</a></li>
@endif @endif
</ul> </ul>