Skip to content

Commit fa5cbbf

Browse files
committedFeb 3, 2012
Don't show Home link twice on homepage.
1 parent c9fc79d commit fa5cbbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎partials/breadcrumbs/array-based.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
foreach ($nodes as $url => $title) {
4242
$navigation_nodes[] = "<a href=\"{$url}\">{$title}</a>";
4343
}
44-
$navigation_nodes[] = '<a href="'.Phpr::$request->getCurrentUri().'" class="current">' . $this->page->title . '</a>';
44+
if (Phpr::$request->getCurrentUri() != '/')
45+
$navigation_nodes[] = '<a href="'.Phpr::$request->getCurrentUri().'" class="current">' . $this->page->title . '</a>';
4546
?>
4647

4748
<?= join(' &raquo; ', $navigation_nodes) ?>
49+

0 commit comments

Comments
 (0)
Please sign in to comment.