diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-05-09 11:25:58 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-05-09 11:25:58 +0200 |
commit | 8b428d84c0666d3ded46c20965784b2f5f5369fb (patch) | |
tree | bdbe06e79f1f0f1337b7025147430cb723250e76 /lib/private | |
parent | a502de0d28c6c4d7ddd23f40ef0ab49f4782988a (diff) | |
download | nextcloud-server-8b428d84c0666d3ded46c20965784b2f5f5369fb.tar.gz nextcloud-server-8b428d84c0666d3ded46c20965784b2f5f5369fb.zip |
Make update server URL configurable
Currently testing the updates is a big problem and not really super easy possible. Since we now have a new updater server we should also make this configurable so that people can properly test updates.
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Updater/VersionCheck.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/private/Updater/VersionCheck.php b/lib/private/Updater/VersionCheck.php index e42a1e2a40c..7b330b53686 100644 --- a/lib/private/Updater/VersionCheck.php +++ b/lib/private/Updater/VersionCheck.php @@ -61,19 +61,15 @@ class VersionCheck { /** * Check if a new version is available * - * @param string $updaterUrl the url to check, i.e. 'http://apps.owncloud.com/updater.php' * @return array|bool */ - public function check($updaterUrl = null) { - + public function check() { // Look up the cache - it is invalidated all 30 minutes if (((int)$this->config->getAppValue('core', 'lastupdatedat') + 1800) > time()) { return json_decode($this->config->getAppValue('core', 'lastupdateResult'), true); } - if (is_null($updaterUrl)) { - $updaterUrl = 'https://updates.owncloud.com/server/'; - } + $updaterUrl = $this->config->getSystemValue('updater.server.url', 'https://updates.owncloud.com/server/'); $this->config->setAppValue('core', 'lastupdatedat', time()); |