diff options
author | Martin Keckeis <martin.keckeis1@gmail.com> | 2017-06-19 14:39:29 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@piwik.org> | 2017-06-19 14:39:29 +0300 |
commit | 22b48527b826434ab0fb500160aa4ce17ebfd34a (patch) | |
tree | 8d289917ad81968f5502a4655afa19e5f4dbefcf /plugins/Marketplace | |
parent | 14047e5c6475636ddf0691675b2deaab5ae285ba (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/Marketplace')
-rw-r--r-- | plugins/Marketplace/UpdateCommunication.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/Marketplace/UpdateCommunication.php b/plugins/Marketplace/UpdateCommunication.php index efebfa899b..e0562af258 100644 --- a/plugins/Marketplace/UpdateCommunication.php +++ b/plugins/Marketplace/UpdateCommunication.php @@ -55,9 +55,12 @@ class UpdateCommunication */ public static function canBeEnabled() { - $isEnabled = Config::getInstance()->General['enable_update_communication']; - - return Marketplace::isMarketplaceEnabled() && !empty($isEnabled); + $isEnabled = (bool) Config::getInstance()->General['enable_update_communication']; + if($isEnabled === true && Marketplace::isMarketplaceEnabled() === true && SettingsPiwik::isInternetEnabled() === true){ + return true; + } + + return false; } /** |