? .cvsignore
? mimedetect_use_magic.patch
Index: mimedetect.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mimedetect/mimedetect.module,v
retrieving revision 1.12
diff -u -p -r1.12 mimedetect.module
--- mimedetect.module	9 May 2009 17:42:01 -0000	1.12
+++ mimedetect.module	9 May 2009 17:44:35 -0000
@@ -53,7 +53,7 @@ function mimedetect_mime($file) {
   );
 
   $mime = FALSE;
-  $magic_file = drupal_get_path('module', 'mimedetect') . '/magic';
+  $magic_file = variable_get('mimedetect_magic', drupal_get_path('module', 'mimedetect') . '/magic');
 
   // Try to use the fileinfo extension first.
   if (extension_loaded('fileinfo')) {
