diff options
author | Fabian Dellwing <fabian.dellwing@mbconnectline.de> | 2019-07-08 03:03:10 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-07-08 03:03:10 +0300 |
commit | b4e628a855440c9be6398aca97568cb3a73319ce (patch) | |
tree | 6950917e02cecf16211782de7fb6ffbdf815c06a /plugins/CoreAdminHome | |
parent | 94d9103d0a2c1ccd6e07009e6675f0c1b1066e4c (diff) |
allow to disable tracking failure notifications (#14448)
* allow to disable tracking failure notifications
* update wording
Diffstat (limited to 'plugins/CoreAdminHome')
-rw-r--r-- | plugins/CoreAdminHome/Tasks.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CoreAdminHome/Tasks.php b/plugins/CoreAdminHome/Tasks.php index bab0f43ad1..ef9b0bd215 100644 --- a/plugins/CoreAdminHome/Tasks.php +++ b/plugins/CoreAdminHome/Tasks.php @@ -178,7 +178,8 @@ class Tasks extends \Piwik\Plugin\Tasks public function notifyTrackingFailures() { $failures = $this->trackingFailures->getAllFailures(); - if (!empty($failures)) { + $general = Config::getInstance()->General; + if (!empty($failures) && $general['enable_tracking_failures_notification']) { $superUsers = Piwik::getAllSuperUserAccessEmailAddresses(); foreach ($superUsers as $login => $email) { $email = new TrackingFailuresEmail($login, $email, count($failures)); |