Skip to content

Commit

Permalink
FIX: page module dead in offline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kitzberger committed Oct 6, 2023
1 parent 9083a97 commit ed13cd3
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 ed13cd3

Please sign in to comment.