Commit 6d72d0c8 authored by mmn's avatar mmn

InlineAttachmentList had unnecessary function

parent c8d613b9
......@@ -50,7 +50,7 @@ class InlineAttachmentList extends AttachmentList
*
* @return ListItem a list item for displaying the attachment
*/
function newListItem($attachment)
function newListItem(File $attachment)
{
return new InlineAttachmentListItem($attachment, $this->out);
}
......@@ -58,18 +58,6 @@ class InlineAttachmentList extends AttachmentList
class InlineAttachmentListItem extends AttachmentListItem
{
protected $thumb;
function show()
{
try {
$this->thumb = $this->attachment->getThumbnail();
parent::show();
} catch (UnsupportedMediaException $e) {
$this->thumb = null;
}
}
function showLink() {
$this->out->elementStart('a', $this->linkAttr());
$this->showRepresentation();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment