]> git.agnieray.net Git - galette.git/blobdiff - galette/includes/galette.inc.php
Cron script was not using DI; fixes #1384
[galette.git] / galette / includes / galette.inc.php
index 439a2e53ce7e5a4f86d0044dbd255fd559d27b17..ce1ba9eefde8d9f0c2c0440caba62232a5220d05 100644 (file)
@@ -254,7 +254,7 @@ if (!$installer and !defined('GALETTE_TESTS')) {
 
         /** TODO: login is now handled in dependencies.php; the cron case should be aswell */
         if ($cron) {
-            $login->logCron(basename($argv[0], '.php'));
+            $container->get('login')->logCron(basename($argv[0], '.php'));
         }
     } else {
         $needs_update = true;