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:
Diffstat (limited to 'core/UpdateCheck.php')
-rw-r--r--core/UpdateCheck.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/UpdateCheck.php b/core/UpdateCheck.php
index e2ce130c4a..403fa90b36 100644
--- a/core/UpdateCheck.php
+++ b/core/UpdateCheck.php
@@ -21,11 +21,6 @@ class UpdateCheck
const LATEST_VERSION = 'UpdateCheck_LatestVersion';
const SOCKET_TIMEOUT = 2;
- private static function isAutoUpdateEnabled()
- {
- return (bool) Config::getInstance()->General['enable_auto_update'];
- }
-
/**
* Check for a newer version
*
@@ -34,7 +29,7 @@ class UpdateCheck
*/
public static function check($force = false, $interval = null)
{
- if (!self::isAutoUpdateEnabled()) {
+ if (!SettingsPiwik::isAutoUpdateEnabled()) {
return;
}