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:
authorThomas Steur <tsteur@users.noreply.github.com>2019-03-12 23:32:28 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-03-12 23:32:28 +0300
commit549578d0d34d15bfe4f1048225e29a2e5ad2fb4d (patch)
tree5a1cf31c839a058cb40ab8ea72461a4da2265d72 /plugins/CoreUpdater
parentf613456b253f2a5261dd6825ef14a7aaf0661ea0 (diff)
New setting to disable Db version check, and do not show update scree…n when auto update disabled (#14058)
* New setting to disable Db version check, and do not show update screen when auto update disabled * move it to DI
Diffstat (limited to 'plugins/CoreUpdater')
-rw-r--r--plugins/CoreUpdater/CoreUpdater.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/CoreUpdater/CoreUpdater.php b/plugins/CoreUpdater/CoreUpdater.php
index 16b7d2d911..34f81fa77b 100644
--- a/plugins/CoreUpdater/CoreUpdater.php
+++ b/plugins/CoreUpdater/CoreUpdater.php
@@ -14,6 +14,7 @@ use Piwik\Common;
use Piwik\Filesystem;
use Piwik\FrontController;
use Piwik\Piwik;
+use Piwik\SettingsPiwik;
use Piwik\UpdateCheck;
use Piwik\Updater as PiwikCoreUpdater;
use Piwik\Version;
@@ -52,6 +53,10 @@ class CoreUpdater extends \Piwik\Plugin
public function dispatch()
{
+ if (!SettingsPiwik::isAutoUpdateEnabled()) {
+ return;
+ }
+
$module = Common::getRequestVar('module', '', 'string');
$action = Common::getRequestVar('action', '', 'string');