commit 54a0ea05e82934853f519fb1612b2066e7829756 Author: Erik Stielstra Date: Mon Sep 30 10:01:15 2013 +0200 #49 diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index eed44ac..af897e8 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -1840,9 +1840,6 @@ function install_get_localization_release($version = \Drupal::VERSION) { * - extra_number: The number part of "extra" (e.g., "2"). */ function _install_get_version_info($version) { - - $info = array(); - preg_match('/ ( (?P[0-9]+) # Major release number. @@ -2345,13 +2342,9 @@ function install_check_translations($install_state) { } if ($translations_directory_exists && $readable && $writable && $translation_available) { - // Download the translation file and check if the file name is recognized - // by the installer. Throw an error if it failed. $translation_downloaded = install_retrieve_file($translation_url, $translations_directory); - $files_found = install_find_translations(); - $translation_file_found = isset($files_found[$langcode]); - if (!$translation_downloaded || !$translation_file_found) { + if (!$translation_downloaded) { $requirements['translation downloaded'] = array( 'title' => t('Translation'), 'value' => t('The %language translation could not be downloaded.', array('%language' => $language)), diff --git a/core/modules/system/lib/Drupal/system/Tests/Installer/InstallerTranslationVersionUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Installer/InstallerTranslationVersionUnitTest.php index 237ce23..b1413b4 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Installer/InstallerTranslationVersionUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Installer/InstallerTranslationVersionUnitTest.php @@ -119,4 +119,4 @@ public function testVersionFallback() { $fallback = array('99.2', '99.1', '98.0'); $this->assertVersionFallback($version, $fallback); } -} \ No newline at end of file +}