mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Don't use the config facade for settings
This commit is contained in:
parent
a5d3a71063
commit
8b8114576d
@ -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'));
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user