Update Breadcrumbs.php

This commit is contained in:
Anton 2022-05-03 20:46:38 +03:00 committed by GitHub
parent b431fc4da4
commit 7996995c0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,12 @@ class Breadcrumbs extends \yii\widgets\Breadcrumbs
} }
Html::addCssClass($this->options, ['widget' => 'breadcrumb']); Html::addCssClass($this->options, ['widget' => 'breadcrumb']);
return Html::tag('nav', parent::run(), $this->navOptions); // @todo update after fixing the parent method
ob_start();
parent::run();
$content = ob_get_clean();
return Html::tag('nav', $content, $this->navOptions);
} }
/** /**