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
1 changed files with 10 additions and 1 deletions

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