Changeset 19cc5b9 in github for program/steps/mail/show.inc


Ignore:
Timestamp:
May 30, 2012 5:22:18 AM (13 months ago)
Author:
Aleksander Machniak <alec@…>
Branches:
master, HEAD, dev-browser-capabilities, pdo
Children:
d901205
Parents:
b9854b8
Message:

Display Tiff as Jpeg in browsers without Tiff support (#1488452)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/mail/show.inc

    rb9854b8 r19cc5b9  
    6262 
    6363  // mimetypes supported by the browser (default settings) 
    64   $mimetypes = $RCMAIL->config->get('client_mimetypes', 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,image/tiff,application/x-javascript,application/pdf,application/x-shockwave-flash'); 
     64  $mimetypes = $RCMAIL->config->get('client_mimetypes', 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,image/bmp,image/tiff,application/x-javascript,application/pdf,application/x-shockwave-flash'); 
    6565  $mimetypes = is_string($mimetypes) ? explode(',', $mimetypes) : (array)$mimetypes; 
    6666 
     
    7373    unset($mimetypes[$key]); 
    7474  } 
    75   // @TODO: we could convert TIFF to JPEG and display it 
    7675  if (empty($_SESSION['browser_caps']['tif']) && ($key = array_search('image/tiff', $mimetypes)) !== false) { 
    77     unset($mimetypes[$key]); 
     76    // we can convert tiff to jpeg 
     77    if (!$RCMAIL->config->get('im_convert_path')) { 
     78      unset($mimetypes[$key]); 
     79    } 
    7880  } 
    7981 
Note: See TracChangeset for help on using the changeset viewer.