File tree 1 file changed +7
-2
lines changed
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)
27
27
$ config = $ this ->processConfiguration (new Configuration (), $ configs );
28
28
29
29
$ extensions = $ container ->getExtensions ();
30
- if (isset ($ config ['multilang ' ]['locales ' ]) && isset ( $ extensions [ ' cmf_routing ' ])) {
30
+ if (isset ($ config ['multilang ' ]['locales ' ])) {
31
31
$ 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
+ }
33
38
}
34
39
35
40
if (isset ($ config ['persistence ' ]['phpcr ' ])) {
You can’t perform that action at this time.
0 commit comments