Skip to content

Firefly III: a personal finances manager

Update breadcrumbs for PHP 7.2 #1079

James Colee2bd1f6544f5
diff --git a/config/breadcrumbs.php b/config/breadcrumbs.php
index 764f93c676..dcfbba2987 100644
--- a/config/breadcrumbs.php
+++ b/config/breadcrumbs.php
@@ -18,7 +18,7 @@ return [
|
*/
- 'view' => 'breadcrumbs::bootstrap3',
+ 'view' => 'partials/breadcrumbs',
/*
|--------------------------------------------------------------------------
diff --git a/resources/views/partials/breadcrumbs.twig b/resources/views/partials/breadcrumbs.twig
new file mode 100644
index 0000000000..8aa74ca38c
--- /dev/null
+++ b/resources/views/partials/breadcrumbs.twig
@@ -0,0 +1,16 @@
+
+{% if breadcrumbs|length > 0 %}
+
+<ol class="breadcrumb">
+ {% for breadcrumb in breadcrumbs %}
+ {% if breadcrumb.url and not loop.last %}
+ <li><a href="{{ breadcrumb.url }}">{{ breadcrumb.title }}</a></li>
+ {% else %}
+ <li class="active">{{ breadcrumb.title }}</li>
+ {% endif %}
+ {% endfor %}
+</ol>
+{% endif %}
+
+
+