summaryrefslogtreecommitdiff
path: root/modules/system.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-01 16:31:09 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-01 16:31:09 +0000
commit46abc88ee4513d8fd52f7e3ef9a68ff415131dff (patch)
treee0e7d5e05cf7f6284fdc49bf59deb8a05da94068 /modules/system.module
parenta8b218827a400cf5ced7db133be0a0f9e2180875 (diff)
downloadbrdo-46abc88ee4513d8fd52f7e3ef9a68ff415131dff.tar.gz
brdo-46abc88ee4513d8fd52f7e3ef9a68ff415131dff.tar.bz2
- Patch #26249 by crunchywelch, Junyor: use upload_tmp_dir as default temporary directory. Fixed file problems on Windows NT systems.
Diffstat (limited to 'modules/system.module')
-rw-r--r--modules/system.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system.module b/modules/system.module
index c91f4b531..9fa32b0a0 100644
--- a/modules/system.module
+++ b/modules/system.module
@@ -325,7 +325,7 @@ function system_view_general() {
'#description' => t('A file system path where the files will be stored. This directory has to exist and be writable by Drupal. If the download method is set to public this directory has to be relative to Drupal installation directory, and be accessible over the web. When download method is set to private this directory should not be accessible over the web. Changing this location after the site has been in use will cause problems so only change this setting on an existing site if you know what you are doing.')
);
- $directory_temp = variable_get('file_directory_temp', FILE_DIRECTORY_TEMP);
+ $directory_temp = variable_get('file_directory_temp', ini_get('upload_tmp_dir'));
file_check_directory($directory_temp, FILE_CREATE_DIRECTORY, 'file_directory_temp');
$form['files']['file_directory_temp'] = array(