mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -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->parent('accounts.index', $what);
|
||||||
$breadcrumbs->push($account->name, route('accounts.show', [$account->id]));
|
$breadcrumbs->push($account->name, route('accounts.show', [$account->id]));
|
||||||
|
if (!is_null($start) && !is_null($end)) {
|
||||||
$title = trans(
|
$title = trans(
|
||||||
'firefly.between_dates_breadcrumb',
|
'firefly.between_dates_breadcrumb',
|
||||||
['start' => $start ? $start->formatLocalized(strval(trans('config.month_and_day'))) : '',
|
['start' => $start ? $start->formatLocalized(strval(trans('config.month_and_day'))) : '',
|
||||||
'end' => $end ? $end->formatLocalized(strval(trans('config.month_and_day'))) : '',]
|
'end' => $end ? $end->formatLocalized(strval(trans('config.month_and_day'))) : '',]
|
||||||
);
|
);
|
||||||
$breadcrumbs->push($title, route('accounts.show', $account));
|
$breadcrumbs->push($title, route('accounts.show', $account));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user