mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-06 13:26:05 -06:00
cat icon error
This commit is contained in:
parent
913bb6816b
commit
3bf679aa8a
@ -13,9 +13,10 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
|
|||||||
|
|
||||||
public function getIconUrlAttribute()
|
public function getIconUrlAttribute()
|
||||||
{
|
{
|
||||||
return $this->dispatch(
|
if ($this->icon === null) {
|
||||||
new MakeImageInstance($this->icon ?? 'visiosoft.module.advs::images/listing/sample-cat-icon.svg', 'img')
|
return $this->dispatch(new MakeImageInstance('visiosoft.module.advs::images/listing/sample-cat-icon.svg', 'img'))->url();
|
||||||
)->url();
|
}
|
||||||
|
return $this->icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCat($id)
|
public function getCat($id)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user