From d65429656e294e23f16742d0f17f65a8079de967 Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Thu, 24 Jan 2013 23:16:02 -0800 Subject: [PATCH] Issue #1885510 by YesCT, aspilicious: Fixed Can't install on some systems (like windows) due to folder permissions (executable check not needed). --- core/includes/install.core.inc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index 20c690bef35f..01bde0183962 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -1846,7 +1846,6 @@ function install_check_translations($install_state) { $readable = FALSE; $writable = FALSE; - $executable = FALSE; $files_directory = variable_get('file_public_path', conf_path() . '/files'); $translations_directory = variable_get('locale_translate_file_directory', conf_path() . '/files/translations'); $translations_directory_exists = FALSE; @@ -1863,7 +1862,6 @@ function install_check_translations($install_state) { if (drupal_verify_install_file($translations_directory, FILE_EXIST|FILE_WRITABLE, 'dir')) { $readable = is_readable($translations_directory); $writable = is_writable($translations_directory); - $executable = is_executable($translations_directory); $translations_directory_exists = TRUE; } @@ -1934,15 +1932,6 @@ function install_check_translations($install_state) { 'value' => st('The translations directory is writable.'), ); } - // If translations directory is not executable, throw an error. - if (!$executable) { - $requirements['translations directory executable'] = array( - 'title' => st('Translations directory'), - 'value' => st('The translations directory is not executable.'), - 'severity' => REQUIREMENT_ERROR, - 'description' => st('The installer requires execute permissions to %translations_directory during the installation process. If you are unsure how to grant file permissions, consult the <a href="@handbook_url">online handbook</a>.', array('%translations_directory' => $translations_directory, '@handbook_url' => 'http://drupal.org/server-permissions')), - ); - } } // If the translations server can not be contacted, throw an error. @@ -1977,7 +1966,7 @@ function install_check_translations($install_state) { } } - if ($translations_directory_exists && $readable && $writable && $executable && $translation_available) { + if ($translations_directory_exists && $readable && $writable && $translation_available) { $translation_downloaded = install_retrieve_file($translation_url, $translations_directory); if (!$translation_downloaded) { -- GitLab