show thumbnails even for links that arent enclosures
这个提交包含在:
父节点
f0ea629990
当前提交
5fd08b798f
@ -58,11 +58,20 @@ class InlineAttachmentList extends AttachmentList
|
||||
|
||||
class InlineAttachmentListItem extends AttachmentListItem
|
||||
{
|
||||
protected $thumb;
|
||||
|
||||
function show()
|
||||
{
|
||||
if ($this->attachment->isEnclosure()) {
|
||||
$this->thumb = parent::getThumbInfo();
|
||||
if (!empty($this->thumb)) {
|
||||
parent::show();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function getThumbInfo()
|
||||
{
|
||||
return $this->thumb;
|
||||
}
|
||||
|
||||
function showLink() {
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户