Skip to content

Commit

Permalink
Merge pull request #306 from kitzberger/fix-offline
Browse files Browse the repository at this point in the history
FIX: page module dead in offline mode
  • Loading branch information
NarkNiro authored May 23, 2024
2 parents 32720c6 + ed13cd3 commit b38db78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Classes/Service/DeeplService.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ public function __construct(
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
$this->deeplSettingsRepository = $objectManager->get(SettingsRepository::class);

$this->loadSupportedLanguages();
$this->apiSupportedLanguages['target'] = $this->deeplSettingsRepository->getSupportedLanguages($this->apiSupportedLanguages['target']);
if (DeeplBackendUtility::isDeeplApiKeySet()) {
$this->loadSupportedLanguages();
$this->apiSupportedLanguages['target'] = $this->deeplSettingsRepository->getSupportedLanguages($this->apiSupportedLanguages['target']);
}
}

/**
Expand Down

0 comments on commit b38db78

Please sign in to comment.