mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix bread crumbs
This commit is contained in:
parent
a7d15ef287
commit
7720482930
@ -60,7 +60,7 @@ class Breadcrumbs extends AbstractExtension
|
|||||||
}
|
}
|
||||||
$breadcrumbs = $this->getBreadcrumbs($arr);
|
$breadcrumbs = $this->getBreadcrumbs($arr);
|
||||||
|
|
||||||
return $this->getHtml($breadcrumbs);
|
return $this->getHtml($breadcrumbs, $args);
|
||||||
|
|
||||||
},
|
},
|
||||||
['is_safe' => ['html']]
|
['is_safe' => ['html']]
|
||||||
@ -87,7 +87,7 @@ class Breadcrumbs extends AbstractExtension
|
|||||||
if (null !== $arr['parent']) {
|
if (null !== $arr['parent']) {
|
||||||
$arr = config(sprintf('bc.%s', $arr['parent']));
|
$arr = config(sprintf('bc.%s', $arr['parent']));
|
||||||
if (null === $arr) {
|
if (null === $arr) {
|
||||||
throw new FireflyException(sprintf('No (2) breadcrumbs for route "%s".', $name));
|
throw new FireflyException(sprintf('No (2) breadcrumbs for route "%s".', $arr['parent']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$loop++; // safety catch
|
$loop++; // safety catch
|
||||||
@ -98,11 +98,12 @@ class Breadcrumbs extends AbstractExtension
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array $breadcrumbs
|
* @param array $breadcrumbs
|
||||||
|
* @param array|null $args
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function getHtml(array $breadcrumbs): string
|
private function getHtml(array $breadcrumbs, ?array $args): string
|
||||||
{
|
{
|
||||||
// get HTML
|
// get HTML
|
||||||
$html = '<ol class="breadcrumb float-sm-right">';
|
$html = '<ol class="breadcrumb float-sm-right">';
|
||||||
|
Loading…
Reference in New Issue
Block a user