Skip to content

Commit

Permalink
appserver
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Sep 25, 2017
1 parent a17f4c8 commit a15eecc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions services/page/Breadcrumbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ class Breadcrumbs extends Service

public function init()
{
if ($this->homeName) {
$items['name'] = $this->homeName;
if ($this->ifAddHomeUrl) {
$items['url'] = Yii::$service->url->homeUrl();
if ($this->active) {
if ($this->homeName) {
$items['name'] = $this->homeName;
if ($this->ifAddHomeUrl) {
$items['url'] = Yii::$service->url->homeUrl();
}
$this->addItems($items);
}
$this->addItems($items);
}
}

Expand Down

0 comments on commit a15eecc

Please sign in to comment.