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

View File

@ -71,6 +71,17 @@ class InlineAttachmentListItem extends AttachmentListItem
$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.
*