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:
authorMartin Keckeis <martin.keckeis1@gmail.com>2017-06-19 14:39:29 +0300
committerStefan Giehl <stefan@piwik.org>2017-06-19 14:39:29 +0300
commit22b48527b826434ab0fb500160aa4ce17ebfd34a (patch)
tree8d289917ad81968f5502a4655afa19e5f4dbefcf /plugins/Referrers
parent14047e5c6475636ddf0691675b2deaab5ae285ba (diff)
disable outgoing communication with one setting (#11465)
* disable outgoing communication with one setting * disabled piwik blog if isInternetEnabled=0 * better description for enable_internet_features * reenable plugin
Diffstat (limited to 'plugins/Referrers')
-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');
+ }
}
/**