attachment type handling while displaying

This commit is contained in:
Klaus Leithoff 2009-10-06 13:24:58 +00:00
parent 828210e4e7
commit 414c1831ab

View File

@ -649,6 +649,7 @@
case 'IMAGE/JPEG':
case 'IMAGE/PNG':
case 'IMAGE/GIF':
case 'IMAGE/BMP':
#case 'application/pdf':
$linkData = array
(
@ -1262,7 +1263,7 @@
$this->t->set_var('size',$value['size']);
$this->t->set_var('attachment_number',$key);
switch($value['mimeType'])
switch(strtolower($value['mimeType']))
{
case 'message/rfc822':
$linkData = array
@ -1278,6 +1279,7 @@
case 'image/jpeg':
case 'image/png':
case 'image/gif':
case 'image/bmp':
#case 'application/pdf':
$linkData = array
(