Remove the remaining use of the lang facade

This commit is contained in:
Graham Campbell
2015-01-01 22:03:33 +00:00
parent b2edda5ee2
commit 056e0c489e
5 changed files with 8 additions and 10 deletions
+5 -5
View File
@@ -13,15 +13,15 @@ View::composer('index', function ($view) {
$incidentCount = $incidents->count();
if ($incidentCount === 0 || ($incidentCount >= 1 && (int) $incidents->first()->status === 4)) {
$status = 'success';
$message = Lang::get('cachet.service.good');
$status = 'success';
$message = trans('cachet.service.good');
} else {
$status = 'danger';
$message = Lang::get('cachet.service.bad');
$status = 'danger';
$message = trans('cachet.service.bad');
}
} else {
$status = 'danger';
$message = Lang::get('cachet.service.bad');
$message = trans('cachet.service.bad');
}
$view->with([