diff options
Diffstat (limited to 'plugins/CoreAdminHome/Tasks.php')
-rw-r--r-- | plugins/CoreAdminHome/Tasks.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/CoreAdminHome/Tasks.php b/plugins/CoreAdminHome/Tasks.php index 719aa6b40d..0d051f5b6c 100644 --- a/plugins/CoreAdminHome/Tasks.php +++ b/plugins/CoreAdminHome/Tasks.php @@ -12,6 +12,7 @@ use Piwik\API\Request; use Piwik\ArchiveProcessor\Rules; use Piwik\Archive\ArchivePurger; use Piwik\Config; +use Piwik\Container\StaticContainer; use Piwik\DataAccess\ArchiveTableCreator; use Piwik\Date; use Piwik\Db; @@ -114,7 +115,12 @@ class Tasks extends \Piwik\Plugin\Tasks return; } - $email = new JsTrackingCodeMissingEmail($user['login'], $user['email'], $idSite); + $container = StaticContainer::getContainer(); + $email = $container->make(JsTrackingCodeMissingEmail::class, array( + 'login' => $user['login'], + 'emailAddress' => $user['email'], + 'idSite' => $idSite + )); $email->send(); } |