Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
661fd5bf
Commit
661fd5bf
authored
May 29, 2013
by
Nathaniel Catchpole
Browse files
Issue
#2002720
by neochief: Remove unused local variables - core/includes/install.core.inc.
parent
1da9055b
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/includes/install.core.inc
View file @
661fd5bf
...
...
@@ -1015,7 +1015,6 @@ function install_verify_database_settings() {
*/
function
install_settings_form
(
$form
,
&
$form_state
,
&
$install_state
)
{
global
$databases
;
$profile
=
$install_state
[
'parameters'
][
'profile'
];
drupal_static_reset
(
'conf_path'
);
$conf_path
=
'./'
.
conf_path
(
FALSE
);
...
...
@@ -1585,7 +1584,7 @@ function install_retrieve_file($uri, $destination) {
function
install_check_localization_server
(
$uri
)
{
try
{
$request
=
Drupal
::
httpClient
()
->
head
(
$uri
);
$response
=
$request
->
send
();
$request
->
send
();
return
TRUE
;
}
catch
(
RequestException
$e
)
{
...
...
@@ -1967,8 +1966,6 @@ function install_check_translations($install_state) {
$translations_directory
=
conf_path
()
.
'/files/translations'
;
$translations_directory_exists
=
FALSE
;
$online
=
FALSE
;
$server_available
=
FALSE
;
$translation_available
=
FALSE
;
// First attempt to create or make writable the files directory.
file_prepare_directory
(
$files_directory
,
FILE_CREATE_DIRECTORY
|
FILE_MODIFY_PERMISSIONS
);
...
...
@@ -2003,10 +2000,9 @@ function install_check_translations($install_state) {
// server can be reached, or in other words if we have an internet connection.
if
(
$translation_available
=
install_check_localization_server
(
$translation_url
))
{
$online
=
TRUE
;
$server_available
=
TRUE
;
}
else
{
if
(
$server_available
=
install_check_localization_server
(
$server_url
))
{
if
(
install_check_localization_server
(
$server_url
))
{
$online
=
TRUE
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment