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

View File

@ -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'));
}
}

View File

@ -16,7 +16,7 @@
</div>
<div class="col-sm-8">
<ul class="list-inline">
@if($current_user || Config::get('setting.dashboard_login_link'))
@if($current_user || $dashboard_link)
<li>
<a class="btn btn-link" href="/dashboard">{{ trans('dashboard.dashboard') }}</a>
</li>

View File

@ -19,7 +19,7 @@
<li><a href="{{ route('auth.logout') }}">{{ trans('dashboard.logout') }}</a></li>
</ul>
</li>
@elseif(Config::get('setting.dashboard_login_link'))
@elseif($dashboard_link)
<li><a href="/dashboard">{{ trans('dashboard.dashboard') }}</a></li>
@endif
</ul>