diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-12 03:10:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-12 03:10:03 +0000 |
commit | 90c1a347826d335d5f890f71bbee086389b360ba (patch) | |
tree | 4338547b5899e598db20bd5d358015ed5405f560 /includes/file.inc | |
parent | dc5991ce9ccc238780dccf978d9143f3a7fea1b8 (diff) | |
download | brdo-90c1a347826d335d5f890f71bbee086389b360ba.tar.gz brdo-90c1a347826d335d5f890f71bbee086389b360ba.tar.bz2 |
- Patch #938614 by chx: bump to PHP 5.2.5.
Diffstat (limited to 'includes/file.inc')
-rw-r--r-- | includes/file.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc index 715ab7ed3..64821ba22 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -122,7 +122,12 @@ function file_get_stream_wrappers($filter = STREAM_WRAPPERS_ALL) { else { $wrappers[$scheme]['override'] = FALSE; } - stream_wrapper_register($scheme, $info['class']); + if (($info['type'] & STREAM_WRAPPERS_REMOTE) == STREAM_WRAPPERS_REMOTE) { + stream_wrapper_register($scheme, $info['class'], STREAM_IS_URL); + } + else { + stream_wrapper_register($scheme, $info['class']); + } } // Pre-populate the static cache with the filters most typically used. $wrappers_storage[STREAM_WRAPPERS_ALL][$scheme] = $wrappers[$scheme]; |