diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2018-08-01 16:51:44 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@piwik.org> | 2018-08-01 16:51:44 +0300 |
commit | 1aa34c3c73d367b586682d3f778967cd6b21cc70 (patch) | |
tree | ef7933716dc3cb88fcea7c2399a475b120a2b462 /core/View.php | |
parent | 7414af9f7e7a4c3d79c30abe19b11c2b485fc426 (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.php | 3 |
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(); |