Changeset 1021

Show
Ignore:
Timestamp:
04/27/08 22:57:50 (7 months ago)
Author:
_ck_
Message:

fallback hack

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bb-attachments/trunk/bb-attachments.php

    r1020 r1021  
    425425if ((!$mime || strpos($mime,'file -bi')!==false) && function_exists('getimagesize') && function_exists('image_type_to_mime_type')  && strpos($disabled,'getimagesize')===false) {  
    426426        // use image function in worst case senario - won't do text types - must fix ! 
    427         $mime=""; $imgt =@getimagesize($f);  if ($imgt) {$mime=image_type_to_mime_type($imgt[2]);}     // 0=width  1=height 
     427        $mime=""; $imgt =@getimagesize($f);  $mime=image_type_to_mime_type($imgt[2]);  // 0=width  1=height  if ($imgt) {}  
    428428} 
    429429return substr($mime,0,strpos($mime.";",";"));