File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,14 @@ public function prepend(ContainerBuilder $container)
2727 $ config = $ this ->processConfiguration (new Configuration (), $ configs );
2828
2929 $ extensions = $ container ->getExtensions ();
30- if (isset ($ config ['multilang ' ]['locales ' ]) && isset ( $ extensions [ ' cmf_routing ' ])) {
30+ if (isset ($ config ['multilang ' ]['locales ' ])) {
3131 $ prependConfig = array ('multilang ' => $ config ['multilang ' ]);
32- $ container ->prependExtensionConfig ('cmf_routing ' , array ('dynamic ' => $ prependConfig ['multilang ' ]));
32+ if (isset ($ extensions ['cmf_routing ' ])) {
33+ $ container ->prependExtensionConfig ('cmf_routing ' , array ('dynamic ' => $ prependConfig ['multilang ' ]));
34+ }
35+ if (isset ($ extensions ['cmf_simple_cms ' ])) {
36+ $ container ->prependExtensionConfig ('cmf_simple_cms ' , $ prependConfig );
37+ }
3338 }
3439
3540 if (isset ($ config ['persistence ' ]['phpcr ' ])) {
You can’t perform that action at this time.
0 commit comments