]> git.agnieray.net Git - galette.git/commitdiff
Do not instantiate l10n at install
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 14 Sep 2020 07:33:58 +0000 (09:33 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 14 Sep 2020 07:33:58 +0000 (09:33 +0200)
galette/includes/dependencies.php

index 31a64b9a752a3e8c8a22fb622a454f372c24eac0..18d64c8ac8f27e7243e4901f7a0148586ca38c9f 100644 (file)
@@ -651,10 +651,11 @@ if (!isset($container['mode']) || ($container['mode'] !== 'INSTALL' && $containe
     $preferences = $container->get('preferences');
     $login = $container->get('login');
     $hist = $container->get('history');
+    global $l10n;
+    $l10n = $container->get('l10n');
 }
-global $translator, $i18n, $l10n;
+global $translator, $i18n;
 $i18n = $container->get('i18n');
-$l10n = $container->get('l10n');
 $translator = $container->get('translator');
 $emitter = $container->get('event_manager');