Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Referrers/Tasks.php')
-rw-r--r--plugins/Referrers/Tasks.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Referrers/Tasks.php b/plugins/Referrers/Tasks.php
index da9cad1321..050692f331 100644
--- a/plugins/Referrers/Tasks.php
+++ b/plugins/Referrers/Tasks.php
@@ -11,13 +11,16 @@ namespace Piwik\Plugins\Referrers;
use Piwik\Http;
use Piwik\Option;
+use Piwik\SettingsPiwik;
class Tasks extends \Piwik\Plugin\Tasks
{
public function schedule()
{
- $this->weekly('updateSearchEngines');
- $this->weekly('updateSocials');
+ if(SettingsPiwik::isInternetEnabled() === true){
+ $this->weekly('updateSearchEngines');
+ $this->weekly('updateSocials');
+ }
}
/**