diff options
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.admin.inc | 10 | ||||
-rw-r--r-- | modules/system/system.module | 1 |
2 files changed, 6 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'), diff --git a/modules/system/system.module b/modules/system/system.module index 3e3702746..cae7a1bb4 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -1458,6 +1458,7 @@ function system_stream_wrappers() { 'name' => t('Temporary files'), 'class' => 'DrupalTemporaryStreamWrapper', 'description' => t('Temporary local files for upload and previews.'), + 'type' => STREAM_WRAPPERS_HIDDEN, ) ); } |