diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-06 13:23:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-06 13:23:54 +0000 |
commit | 55f583558cab77223ee396e1b59ebdf6ad4e444f (patch) | |
tree | ca1c37b6e6cd86d173b0f816684e4a2b8ffff6cc /install.php | |
parent | 4f35ae01a2d9836b03ad39e0e52aaa554999876a (diff) | |
download | brdo-55f583558cab77223ee396e1b59ebdf6ad4e444f.tar.gz brdo-55f583558cab77223ee396e1b59ebdf6ad4e444f.tar.bz2 |
- Patch #352722 by dmitrig01: conditionally show 'settings.php not writable' error so that the message doesn't show up when the file does not exist.
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/install.php b/install.php index ac4531ca5..f93a338f9 100644 --- a/install.php +++ b/install.php @@ -926,28 +926,28 @@ function install_check_requirements($profile, $verify) { 'title' => st('Settings file'), 'value' => st('The settings file does not exist.'), 'severity' => REQUIREMENT_ERROR, - 'description' => st('The @drupal installer requires that you create a settings file as part of the installation process. Copy the %default_file file to %file. More details about installing Drupal are available in INSTALL.txt.', array('@drupal' => drupal_install_profile_name(), '%file' => $file, '%default_file' => $conf_path .'/default.settings.php')), + 'description' => st('The @drupal installer requires that you create a settings file as part of the installation process. Copy the %default_file file to %file. More details about installing Drupal are available in <a href="@install_txt">INSTALL.txt</a>.', array('@drupal' => drupal_install_profile_name(), '%file' => $file, '%default_file' => $conf_path .'/default.settings.php', '@install_txt' => base_path() .'INSTALL.txt')), ); } - elseif ($exists) { + else { $requirements['settings file exists'] = array( 'title' => st('Settings file'), 'value' => st('The %file file exists.', array('%file' => $file)), ); - } - if (!$writable) { - $requirements['settings file writable'] = array( - 'title' => st('Settings file'), - 'value' => st('The settings file is not writable.'), - 'severity' => REQUIREMENT_ERROR, - 'description' => st('The @drupal installer requires write permissions to %file during the installation process. If you are unsure how to grant file permissions, please consult the <a href="@handbook_url">online handbook</a>.', array('@drupal' => drupal_install_profile_name(), '%file' => $file, '@handbook_url' => 'http://drupal.org/server-permissions')), - ); - } - elseif ($writable) { - $requirements['settings file'] = array( - 'title' => st('Settings file'), - 'value' => st('Settings file is writable.'), - ); + if (!$writable) { + $requirements['settings file writable'] = array( + 'title' => st('Settings file'), + 'value' => st('The settings file is not writable.'), + 'severity' => REQUIREMENT_ERROR, + 'description' => st('The @drupal installer requires write permissions to %file during the installation process. If you are unsure how to grant file permissions, please consult the <a href="@handbook_url">online handbook</a>.', array('@drupal' => drupal_install_profile_name(), '%file' => $file, '@handbook_url' => 'http://drupal.org/server-permissions')), + ); + } + else { + $requirements['settings file'] = array( + 'title' => st('Settings file'), + 'value' => st('Settings file is writable.'), + ); + } } } return $requirements; |