From d53f3e39d5da63f20a90f3a221da139b7afa7673 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 26 Jan 2010 08:29:25 +0000 Subject: - Patch #685074 by pwolanin: some stream wrappers need to be hidden or read-only. --- modules/system/system.admin.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/system/system.admin.inc') 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'), -- cgit v1.2.3