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:
authordiosmosis <diosmosis@users.noreply.github.com>2018-08-01 16:51:44 +0300
committerStefan Giehl <stefan@piwik.org>2018-08-01 16:51:44 +0300
commit1aa34c3c73d367b586682d3f778967cd6b21cc70 (patch)
treeef7933716dc3cb88fcea7c2399a475b120a2b462 /core/View.php
parent7414af9f7e7a4c3d79c30abe19b11c2b485fc426 (diff)
If internet access is disabled, show a link to the matomo.org changelog instead of the update check link. (#13229)
Diffstat (limited to 'core/View.php')
-rw-r--r--core/View.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/View.php b/core/View.php
index e3ef17f1ff..9fac3137f0 100644
--- a/core/View.php
+++ b/core/View.php
@@ -44,6 +44,8 @@ if (!defined('PIWIK_USER_PATH')) {
* - **show_autocompleter**: Whether the site selector should be shown or not.
* - **loginModule**: The name of the currently used authentication module.
* - **userAlias**: The alias of the current user.
+ * - **isInternetEnabled**: Whether the matomo server is allowed to connect to
+ * external networks.
*
* ### Template Naming Convention
*
@@ -245,6 +247,7 @@ class View implements ViewInterface
$this->disableLink = Common::getRequestVar('disableLink', 0, 'int');
$this->isWidget = Common::getRequestVar('widget', 0, 'int');
$this->isMultiServerEnvironment = SettingsPiwik::isMultiServerEnvironment();
+ $this->isInternetEnabled = SettingsPiwik::isInternetEnabled();
$piwikAds = StaticContainer::get('Piwik\ProfessionalServices\Advertising');
$this->areAdsForProfessionalServicesEnabled = $piwikAds->areAdsForProfessionalServicesEnabled();