Skip to content

Commit e81859f

Browse files
committed
fixed bug gthumb | ithumb
1 parent d0d9292 commit e81859f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Models/Image.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Image extends Model implements HasMedia
4141
use InteractsWithMedia, HasTranslations;
4242

4343

44-
public $translatable = ['title'];
44+
public $translatable = ['title','description'];
4545

4646
protected $guarded = [];
4747

@@ -71,7 +71,7 @@ public function registerMediaConversions(Media $media = null): void
7171
public function imgurl()
7272
{
7373
if ($this->getMedia()->count() > 0) {
74-
return $this->getMedia()->first()->getUrl('ithumb');
74+
return $this->getMedia()->first()->getUrl('gthumb');
7575
} else {
7676
return "no image";
7777
}

0 commit comments

Comments
 (0)