DEV: For > PHP8.1

This commit is contained in:
Evg 2023-05-02 03:13:27 +03:00
parent 7431992062
commit a1f626282e
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ class DirController extends Controller
'category' => $category,
'childrens' => $childrens,
'user_count_site' => $count_site,
'breadcrumb' => static::getBreadcrumb($category['facet_id'], $sort),
'breadcrumb' => $this->getBreadcrumb($category['facet_id'], $sort),
'characteristics' => WebModel::getTypesWidget($category['facet_id']),
'low_matching' => FacetModel::getLowMatching($category['facet_id']),
]

View file

@ -6,7 +6,7 @@ use App\Models\FacetModel;
trait Breadcrumb
{
public static function getBreadcrumb($facet_id, $sort = [], $type = 'category')
public function getBreadcrumb($facet_id, $sort = [], $type = 'category')
{
$facet = FacetModel::breadcrumb($facet_id);