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