]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Forgot a break in a switch when rendering attachments.
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 3 Feb 2016 18:32:51 +0000 (19:32 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 3 Feb 2016 18:32:51 +0000 (19:32 +0100)
lib/attachmentlistitem.php

index 291cf685d1d442b45fee357832ddc470fefc4483..e6163ecc9265372d627c6caa446be96983032c32 100644 (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'))) {