diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-01 09:32:17 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-01 09:32:17 +0000 |
commit | 27369e8b96226dc92496a04560ab4561be5a10d3 (patch) | |
tree | 523cf3dedf2ec1bdc7aedd1e6d77fa068308a2b0 /install.php | |
parent | 7cc7e080a097169f8578e4680c535ea6e06ab151 (diff) | |
download | brdo-27369e8b96226dc92496a04560ab4561be5a10d3.tar.gz brdo-27369e8b96226dc92496a04560ab4561be5a10d3.tar.bz2 |
#304163 by chx: Allow update.php to re-generate settings.php. Now possible to upgrade Drupal 6 to Drupal 7. Oh, yeah.
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/install.php b/install.php index ec3bcf507..17b02e119 100644 --- a/install.php +++ b/install.php @@ -891,64 +891,6 @@ function install_reserved_tasks() { } /** - * Check installation requirements and report any errors. - */ -function install_check_requirements($profile, $verify) { - // Check the profile requirements. - $requirements = drupal_check_profile($profile); - - // If Drupal is not set up already, we need to create a settings file. - if (!$verify) { - $writable = FALSE; - $conf_path = './' . conf_path(FALSE, TRUE); - $settings_file = $conf_path . '/settings.php'; - $file = $conf_path; - $exists = FALSE; - // Verify that the directory exists. - if (drupal_verify_install_file($conf_path, FILE_EXIST, 'dir')) { - // Check to make sure a settings.php already exists. - $file = $settings_file; - if (drupal_verify_install_file($settings_file, FILE_EXIST)) { - $exists = TRUE; - // If it does, make sure it is writable. - $writable = drupal_verify_install_file($settings_file, FILE_READABLE|FILE_WRITABLE); - $exists = TRUE; - } - } - - if (!$exists) { - $requirements['settings file exists'] = array( - '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 <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')), - ); - } - 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')), - ); - } - else { - $requirements['settings file'] = array( - 'title' => st('Settings file'), - 'value' => st('Settings file is writable.'), - ); - } - } - } - return $requirements; -} - -/** * Add the installation task list to the current page. */ function install_task_list($active = NULL) { |