diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-06-14 13:33:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-06-14 13:33:45 +0000 |
commit | f6d56f96c306a9e9ec3202c087321edc39d65b03 (patch) | |
tree | 2e530fa7f3722dfb7da23aa93acc905f3a460b4d /modules/system/system.install | |
parent | 6c934509fe49103631ef05d59f99088788bb1b35 (diff) | |
download | brdo-f6d56f96c306a9e9ec3202c087321edc39d65b03.tar.gz brdo-f6d56f96c306a9e9ec3202c087321edc39d65b03.tar.bz2 |
- Patch #551658 by Stevel: improve directory testing.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index c6d0470f5..68dd8182b 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -269,8 +269,18 @@ function system_requirements($phase) { // By default no private files directory is configured. For private files // to be secure the admin needs to provide a path outside the webroot. variable_get('file_private_path', FALSE), - variable_get('file_temporary_path', sys_get_temp_dir()), ); + + // Do not check for the temporary files directory at install time + // unless it has been set in settings.php. In this case the user has + // no alternative but to fix the directory if it is not writable. + if ($phase == 'install') { + $directories[] = variable_get('file_temporary_path', FALSE); + } + else { + $directories[] = variable_get('file_temporary_path', file_directory_temp()); + } + $requirements['file system'] = array( 'title' => $t('File system'), ); |