Skip to content

Commit

Permalink
fix: folderUrl usage was preventing changes via config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
denniserdmann committed Aug 29, 2021
1 parent 70660d9 commit 58da7c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords":["contao", "erdmannfreunde", "optimist", "theme"],
"type": "composer-plugin",
"license": "LGPL-3.0-or-later",
"version": "1.1.9",
"version": "1.1.10",
"authors":[
{
"name": "Erdmann & Freunde",
Expand Down
4 changes: 3 additions & 1 deletion src/ContaoManager/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class Plugin implements ExtensionPluginInterface
public function getExtensionConfig($extensionName, array $extensionConfigs, ContainerBuilder $container)
{
if ('contao' === $extensionName) {
$extensionConfigs[] = ['localconfig' => ['folderUrl' => true]];
foreach($extensionConfigs as $id=>$value) {
$extensionConfigs[$id]['localconfig'] = array_merge($extensionConfigs[$id]['localconfig'] ?? [], ['folderUrl' => true]);
}
}

return $extensionConfigs;
Expand Down

0 comments on commit 58da7c6

Please sign in to comment.