Skip to content

Commit

Permalink
Merge branch '6_lang_error'
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-thinkshout committed Nov 30, 2021
2 parents 9f6c159 + 54f4b49 commit b4f57c8
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/DistroHelperUpdates.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,6 @@ public function exportConfig($config_name) {

// Find out which config was saved.
$sync_storage->write($config_name, $active_storage->read($config_name));

// Export configuration collections.
foreach ($active_storage->getAllCollectionNames() as $collection) {
$active_collection = $active_storage->createCollection($collection);
$sync_collection = $sync_storage->createCollection($collection);
if ( $active_collection->read($config_name)) {
$sync_collection->write($config_name, $active_collection->read($config_name));
}
else {
\Drupal::logger('distro_helper')->warning(
'Could not write the @directory file. Did it successfully save to the database?',
['@directory' => $sync_collection->getFilePath($config_name)]);
}
}
}
else {
// Log: Could not read $config_name from the config sync directory. Did it successfully save to the database?
Expand Down

0 comments on commit b4f57c8

Please sign in to comment.