Changeset 2206 for trunk/include


Ignore:
Timestamp:
Feb 13, 2008, 2:19:29 AM (17 years ago)
Author:
rvelices
Message:

fix: non-image elements without representative and without mime type icon default to thumbnail if possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_picture.inc.php

    r2026 r2206  
    149149      $path = get_themeconf('mime_icon_dir');
    150150      $path.= strtolower($ext).'.png';
     151      if ( !file_exists(PHPWG_ROOT_PATH.$path)
     152          and !empty($element_info['tn_ext']) )
     153      {
     154        $path = get_thumbnail_location($element_info);
     155      }
    151156    }
    152157
Note: See TracChangeset for help on using the changeset viewer.