From 286f6188780e17f65279e6ed063e7f51aff6d7e5 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Mon, 29 Dec 2003 18:08:33 +0000 Subject: - Fixing temp directory check. --- modules/system/system.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index 7baf4ecab..e7f93db64 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -130,7 +130,7 @@ function system_view_general() { if (!file_check_directory(variable_get('file_directory_path', 'files'))) { $error['file_directory_path'] = theme('error', t('Directory does not exist, or is not writable.')); } - if (!file_check_directory(variable_get('file_directory_temp', ini_get('upload_tmp_dir')))) { + if (!file_check_directory(variable_get('file_directory_temp', (PHP_OS == 'WINNT' ? 'c:\\windows\\temp' : '/tmp')))) { $error['file_directory_temp'] = theme('error', t('Directory does not exist, or is not writable.')); } $group = form_textfield(t('File system path'), 'file_directory_path', variable_get('file_directory_path', 'files'), 70, 255, 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.') . $error['file_directory_path']); -- cgit v1.2.3