From 4ae238ea577ed0140df6fd034b06bfd7b0f0cdb4 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 24 Aug 2009 00:02:05 +0000 Subject: *** empty log message *** --- includes/stream_wrappers.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes/stream_wrappers.inc') diff --git a/includes/stream_wrappers.inc b/includes/stream_wrappers.inc index 6841325cc..cb642d979 100644 --- a/includes/stream_wrappers.inc +++ b/includes/stream_wrappers.inc @@ -194,7 +194,8 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface static function getMimeType($uri, $mapping = NULL) { if (!isset($mapping)) { $mapping = variable_get('mime_extension_mapping', NULL); - if (!isset($mapping) && drupal_function_exists('file_default_mimetype_mapping')) { + if (!isset($mapping)) { + include_once DRUPAL_ROOT . '/includes/file.mimetypes.inc'; // The default file map, defined in file.mimetypes.inc is quite big. // We only load it when necessary. $mapping = file_default_mimetype_mapping(); -- cgit v1.2.3