summaryrefslogtreecommitdiff
path: root/includes/stream_wrappers.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-24 00:02:05 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-24 00:02:05 +0000
commit4ae238ea577ed0140df6fd034b06bfd7b0f0cdb4 (patch)
tree91a4f64953675ba9204158ebca02276aec7555ba /includes/stream_wrappers.inc
parentc98fd96c62e6a60f5e5e2476ebc38766e438c535 (diff)
downloadbrdo-4ae238ea577ed0140df6fd034b06bfd7b0f0cdb4.tar.gz
brdo-4ae238ea577ed0140df6fd034b06bfd7b0f0cdb4.tar.bz2
*** empty log message ***
Diffstat (limited to 'includes/stream_wrappers.inc')
-rw-r--r--includes/stream_wrappers.inc3
1 files changed, 2 insertions, 1 deletions
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();