Some comparisons were incorrect (text/html;charset=utf-8 etc.)

This commit is contained in:
Mikael Nordfeldth 2016-07-21 01:38:31 +02:00
parent 1981cb7662
commit e52275e37f
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ class AttachmentListItem extends Widget
default:
unset($thumb); // there's no need carrying this along
switch ($this->attachment->mimetype) {
switch (common_bare_mime($this->attachment->mimetype)) {
case 'text/plain':
$this->element('div', ['class'=>'e-content plaintext'], file_get_contents($this->attachment->getPath()));
break;