Skip to content

Commit

Permalink
[BUGFIX] Use proper in_array() call in LanguagePackService
Browse files Browse the repository at this point in the history
Resolves: #90836
Releases: 9.5
Change-Id: I6ad3c02a792ba2bdc94916ba983270a5ad6c5326
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63928
Reviewed-by: Susanne Moog <look@susi.dev>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: David Rellstab <david@rellstab.li>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
  • Loading branch information
bmack authored and ohader committed Mar 26, 2020
1 parent 50d757d commit 4042a0b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -247,7 +247,7 @@ public function languagePackDownload(string $key, string $iso): string
throw new \RuntimeException('Language pack baseUrl not found', 1520169691);
}

if (in_array(self::OLD_LANGUAGE_PACK_URLS, $languagePackBaseUrl, true)
if (in_array($languagePackBaseUrl, self::OLD_LANGUAGE_PACK_URLS, true)
&& GeneralUtility::makeInstance(Features::class)->isFeatureEnabled('newTranslationServer')) {
$languagePackBaseUrl = self::LANGUAGE_PACK_URL;
}
Expand Down

0 comments on commit 4042a0b

Please sign in to comment.