[BUGFIX] Language pack generation fails with fatal error 20/59220/3
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 19 Dec 2018 17:19:01 +0000 (12:19 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 19 Dec 2018 17:27:25 +0000 (18:27 +0100)
Fix syntax error.

Change-Id: I58848aec7904c7c55a1d6c3f79e0fede475133e8
Resolves: #86991
Reviewed-on: https://review.typo3.org/59220
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Classes/Domain/Repository/LanguagePackRepository.php

index 10e4b3b..492a1e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-12-19  Stanislas Rolland  <typo3(arobas)sjbr.ca>
+
+       * Resolves #86991: Language pack generation fails with fatal error
+
 2018-10-25  Stanislas Rolland  <typo3(arobas)sjbr.ca>
 
        * Resolves #86710: Crash in PHP 7.0 due to nullable return type
index cb2f4a6..ad604db 100644 (file)
@@ -63,7 +63,7 @@ class LanguagePackRepository extends Repository
         $localeCamel = GeneralUtility::underscoredToUpperCamelCase(strtolower($locale));
 
         $languagePackExtensionKey = $extensionKey . '_' . $localeLowerCase;
-        $languagePackExtensionPath = (class_exists(\TYPO3\CMS\Core\Core\Environment) ? (\TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/') : PATH_site) . 'typo3conf/ext/' . $languagePackExtensionKey . '/';
+        $languagePackExtensionPath = (class_exists('TYPO3\\CMS\\Core\\Core\\Environment') ? (\TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/') : PATH_site) . 'typo3conf/ext/' . $languagePackExtensionKey . '/';
 
         // Cleanup any pre-existing language pack
         if (is_dir($languagePackExtensionPath)) {