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:
authorStefan Giehl <stefan@piwik.org>2018-07-10 22:44:52 +0300
committerGitHub <noreply@github.com>2018-07-10 22:44:52 +0300
commit4b88aa24c9c85c45340ca854c812c21014d86dc2 (patch)
treee1f279d3d4faa5d3ac00a523dff360e9abec3fe0 /plugins/Marketplace
parenta4c01fe919de7c5696e3c06d2c066085e08ec255 (diff)
Disables some more feature if internet features are disabled (#13076)
* Disable GeoIP update tasks if no internet connection available * Show GeoLocation Auto Updater UI only with enabled internet connection * Throw exception if Marketplace is used without enabled internet features * Hide Marketplace menu entry if internet is disabled * Implements new plugin class method requiresInternetConnection, to automatically unloaded plugins if required * Improve how plugins not working without internet connection are shown in plugin list * Adds UI test * typo 'whether'
Diffstat (limited to 'plugins/Marketplace')
-rw-r--r--plugins/Marketplace/Marketplace.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Marketplace/Marketplace.php b/plugins/Marketplace/Marketplace.php
index a5991a9f80..ae77971975 100644
--- a/plugins/Marketplace/Marketplace.php
+++ b/plugins/Marketplace/Marketplace.php
@@ -37,6 +37,11 @@ class Marketplace extends \Piwik\Plugin
return true;
}
+ public function requiresInternetConnection()
+ {
+ return true;
+ }
+
public function checkForUpdates()
{
$marketplace = StaticContainer::get('Piwik\Plugins\Marketplace\Api\Client');