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

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