Skip to content
Snippets Groups Projects
Commit 661fd5bf authored by catch's avatar catch
Browse files

Issue #2002720 by neochief: Remove unused local variables - core/includes/install.core.inc.

parent 1da9055b
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1015,7 +1015,6 @@ function install_verify_database_settings() { ...@@ -1015,7 +1015,6 @@ function install_verify_database_settings() {
*/ */
function install_settings_form($form, &$form_state, &$install_state) { function install_settings_form($form, &$form_state, &$install_state) {
global $databases; global $databases;
$profile = $install_state['parameters']['profile'];
drupal_static_reset('conf_path'); drupal_static_reset('conf_path');
$conf_path = './' . conf_path(FALSE); $conf_path = './' . conf_path(FALSE);
...@@ -1585,7 +1584,7 @@ function install_retrieve_file($uri, $destination) { ...@@ -1585,7 +1584,7 @@ function install_retrieve_file($uri, $destination) {
function install_check_localization_server($uri) { function install_check_localization_server($uri) {
try { try {
$request = Drupal::httpClient()->head($uri); $request = Drupal::httpClient()->head($uri);
$response = $request->send(); $request->send();
return TRUE; return TRUE;
} }
catch (RequestException $e) { catch (RequestException $e) {
...@@ -1967,8 +1966,6 @@ function install_check_translations($install_state) { ...@@ -1967,8 +1966,6 @@ function install_check_translations($install_state) {
$translations_directory = conf_path() . '/files/translations'; $translations_directory = conf_path() . '/files/translations';
$translations_directory_exists = FALSE; $translations_directory_exists = FALSE;
$online = FALSE; $online = FALSE;
$server_available = FALSE;
$translation_available = FALSE;
// First attempt to create or make writable the files directory. // First attempt to create or make writable the files directory.
file_prepare_directory($files_directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS); file_prepare_directory($files_directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);
...@@ -2003,10 +2000,9 @@ function install_check_translations($install_state) { ...@@ -2003,10 +2000,9 @@ function install_check_translations($install_state) {
// server can be reached, or in other words if we have an internet connection. // server can be reached, or in other words if we have an internet connection.
if ($translation_available = install_check_localization_server($translation_url)) { if ($translation_available = install_check_localization_server($translation_url)) {
$online = TRUE; $online = TRUE;
$server_available = TRUE;
} }
else { else {
if ($server_available = install_check_localization_server($server_url)) { if (install_check_localization_server($server_url)) {
$online = TRUE; $online = TRUE;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment