CSS class tweak for inline attachment thumbnails to avoid things thinking they're content links

This commit is contained in:
Brion Vibber 2010-11-10 14:31:55 -08:00
parent 592e0bc505
commit 46223da594

View File

@ -71,6 +71,17 @@ class InlineAttachmentListItem extends AttachmentListItem
$this->out->elementEnd('a'); $this->out->elementEnd('a');
} }
/**
* Build HTML attributes for the link
* @return array
*/
function linkAttr()
{
$attr = parent::linkAttr();
$attr['class'] = 'attachment-thumbnail';
return $attr;
}
/** /**
* start a single notice. * start a single notice.
* *