Forgot a break in a switch when rendering attachments.

This commit is contained in:
Mikael Nordfeldth 2016-02-03 19:32:51 +01:00
parent 9960714896
commit d5ecbd05a1

View File

@ -171,6 +171,7 @@ class AttachmentListItem extends Widget
switch ($this->attachment->mimetype) {
case 'text/plain':
$this->element('div', ['class'=>'e-content plaintext'], file_get_contents($this->attachment->getPath()));
break;
case 'text/html':
if (!empty($this->attachment->filename)
&& (GNUsocial::isAjax() || common_config('attachments', 'show_html'))) {