Skip to content

Commit

Permalink
Remove both "normal" and ICU domain from messages set
Browse files Browse the repository at this point in the history
  • Loading branch information
snpy committed Nov 24, 2022
1 parent 0b1317a commit c040dab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Catalogue/CatalogueFetcher.php
Expand Up @@ -53,8 +53,8 @@ public function getCatalogues(Configuration $config, array $locales = []): array

foreach ($currentCatalogue->getDomains() as $domain) {
if (!$this->isValidDomain($config, $domain)) {
$messages = $currentCatalogue->all();
unset($messages[$domain]);
$messages = NSA::getProperty($currentCatalogue, 'messages');
unset($messages[$domain], $messages[$domain . '+intl-icu' /* MessageCatalogueInterface::INTL_DOMAIN_SUFFIX */]);
NSA::setProperty($currentCatalogue, 'messages', $messages);
}
}
Expand Down

0 comments on commit c040dab

Please sign in to comment.