mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-25 08:21:08 -06:00
Fix empty title.
This commit is contained in:
parent
c2da5931ec
commit
f674df4422
@ -81,13 +81,14 @@ Breadcrumbs::register(
|
||||
|
||||
$breadcrumbs->parent('accounts.index', $what);
|
||||
$breadcrumbs->push($account->name, route('accounts.show', [$account->id]));
|
||||
|
||||
$title = trans(
|
||||
'firefly.between_dates_breadcrumb',
|
||||
['start' => $start ? $start->formatLocalized(strval(trans('config.month_and_day'))) : '',
|
||||
'end' => $end ? $end->formatLocalized(strval(trans('config.month_and_day'))) : '',]
|
||||
);
|
||||
$breadcrumbs->push($title, route('accounts.show', $account));
|
||||
if (!is_null($start) && !is_null($end)) {
|
||||
$title = trans(
|
||||
'firefly.between_dates_breadcrumb',
|
||||
['start' => $start ? $start->formatLocalized(strval(trans('config.month_and_day'))) : '',
|
||||
'end' => $end ? $end->formatLocalized(strval(trans('config.month_and_day'))) : '',]
|
||||
);
|
||||
$breadcrumbs->push($title, route('accounts.show', $account));
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user