show thumbnails even for links that arent enclosures

This commit is contained in:
Evan Prodromou 2011-04-21 16:13:32 -04:00
parent f0ea629990
commit 5fd08b798f

View File

@ -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() {