diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-01-26 08:29:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-01-26 08:29:25 +0000 |
commit | d53f3e39d5da63f20a90f3a221da139b7afa7673 (patch) | |
tree | 3058e2d4cae41d4f6f0c1dd2f9484ace1565ac58 /modules/system/system.admin.inc | |
parent | 420c27c4892ab5a0a9009f0006786bd5e7c0a787 (diff) | |
download | brdo-d53f3e39d5da63f20a90f3a221da139b7afa7673.tar.gz brdo-d53f3e39d5da63f20a90f3a221da139b7afa7673.tar.bz2 |
- Patch #685074 by pwolanin: some stream wrappers need to be hidden or read-only.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r-- | modules/system/system.admin.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index be9597fdf..284d8a55f 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1743,11 +1743,11 @@ function system_file_system_settings() { '#description' => t('A local file system path where temporary files will be stored. This directory should not be accessible over the web.'), '#after_build' => array('system_check_directory'), ); - $wrappers = file_get_stream_wrappers(); - $options = array( - 'public' => $wrappers['public']['description'], - 'private' => $wrappers['private']['description'] - ); + // Any visible, writeable wrapper can potentially be used for the files + // directory, including a remote file system that integrates with a CDN. + foreach(file_get_stream_wrappers(STREAM_WRAPPERS_WRITE_VISIBLE) as $scheme => $info) { + $options[$scheme] = $info['description']; + } $form['file_default_scheme'] = array( '#type' => 'radios', '#title' => t('Default download method'), |