We don't have the thumbnail title in attachment list
This commit is contained in:
parent
42104612bd
commit
783cc20586
|
@ -114,7 +114,7 @@ class AttachmentListItem extends Widget
|
||||||
case 'image/jpeg':
|
case 'image/jpeg':
|
||||||
try {
|
try {
|
||||||
$thumb = $this->attachment->getThumbnail();
|
$thumb = $this->attachment->getThumbnail();
|
||||||
$this->out->element('img', array('class'=>'u-photo', 'src' => $thumb->getUrl(), 'alt' => $e->file->title));
|
$this->out->element('img', array('class'=>'u-photo', 'src' => $thumb->getUrl(), 'alt' => ''));
|
||||||
} catch (UseFileAsThumbnailException $e) {
|
} catch (UseFileAsThumbnailException $e) {
|
||||||
$this->out->element('img', array('class'=>'u-photo', 'src' => $e->file->getUrl(), 'alt' => $e->file->title));
|
$this->out->element('img', array('class'=>'u-photo', 'src' => $e->file->getUrl(), 'alt' => $e->file->title));
|
||||||
} catch (UnsupportedMediaException $e) {
|
} catch (UnsupportedMediaException $e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user