diff options
Diffstat (limited to 'plugins/CoreAdminHome/Tasks.php')
-rw-r--r-- | plugins/CoreAdminHome/Tasks.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/CoreAdminHome/Tasks.php b/plugins/CoreAdminHome/Tasks.php index 24d06d1b17..aa026de425 100644 --- a/plugins/CoreAdminHome/Tasks.php +++ b/plugins/CoreAdminHome/Tasks.php @@ -1,6 +1,6 @@ <?php /** - * Piwik - free/libre analytics platform + * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later @@ -84,7 +84,8 @@ class Tasks extends \Piwik\Plugin\Tasks $this->daily('cleanupTrackingFailures', null, self::LOWEST_PRIORITY); $this->weekly('notifyTrackingFailures', null, self::LOWEST_PRIORITY); - if(SettingsPiwik::isInternetEnabled() === true){ + $generalConfig = Config::getInstance()->Tracker; + if((SettingsPiwik::isInternetEnabled() === true) && $generalConfig['enable_spam_filter']){ $this->weekly('updateSpammerBlacklist'); } |