Index: imce.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imce/imce.module,v
retrieving revision 1.23.2.5
diff -u -r1.23.2.5 imce.module
--- imce.module	19 Jul 2008 13:21:02 -0000	1.23.2.5
+++ imce.module	3 Dec 2009 10:34:34 -0000
@@ -85,18 +85,11 @@
  */
 function imce_file_download($file) {
   if ($path = file_create_path($file)) {
-    if ($info = @getimagesize($path)) {
-      $type = $info['mime'];
-    }
-    else if (function_exists('finfo_file') && $finfo = @finfo_open(FILEINFO_MIME)) {
-      $type = finfo_file($finfo, $path);
-      finfo_close($finfo);
-    }
-    else if ($result = db_result(db_query("SELECT filemime FROM {files} WHERE filepath = '%s'", $path))) {
+    if ($result = db_result(db_query("SELECT filemime FROM {files} WHERE filepath = '%s'", $path))) {
       $type = $result;
     }
-    else if (function_exists('mime_content_type')) {
-      $type = mime_content_type($path);
+    else if (function_exists('file_get_mimetype')) {
+      $type = file_get_mimetype($path);
     }
     else {
       $type = 'application/x-download';

