Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

Commit 2999607

Browse files
committed
Modify divider
Remove initial divider
1 parent dafc42a commit 2999607

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/Breadcrumb.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Breadcrumb {
2222
* Options
2323
*
2424
*/
25-
private $divider = ' › ';
25+
private $divider = '  ›  ';
2626
private $tag_open = '<div id="breadcrumb">';
2727
private $tag_close = '</div>';
2828

@@ -123,7 +123,7 @@ function output()
123123
foreach ($this->breadcrumbs as $key => $crumb) {
124124

125125
// add divider
126-
$output .= $this->divider;
126+
if ($key) $output .= $this->divider;
127127

128128
// if last element
129129
if (end(array_keys($this->breadcrumbs)) == $key) {

0 commit comments

Comments
 (0)