diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-21 14:01:49 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-21 14:01:49 +0200 |
commit | cb366666003a6a40f075aceb2acbe05b37bd4363 (patch) | |
tree | a1d8515c9d64f7961014dcc25fd360dfc272b3c1 /lib/private/updater.php | |
parent | 3e499d1ac4fb18ee24c7a7aa032619a21e08a97f (diff) | |
parent | d9907b6fa3c1523ee19bc6c3d888a0d71521819e (diff) | |
download | nextcloud-server-cb366666003a6a40f075aceb2acbe05b37bd4363.tar.gz nextcloud-server-cb366666003a6a40f075aceb2acbe05b37bd4363.zip |
Merge pull request #11630 from owncloud/kill-some-legacy
remove legacy class OC_Updater
Diffstat (limited to 'lib/private/updater.php')
-rw-r--r-- | lib/private/updater.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/updater.php b/lib/private/updater.php index 3eb2cd4ec4c..38a281cd2f8 100644 --- a/lib/private/updater.php +++ b/lib/private/updater.php @@ -66,13 +66,17 @@ class Updater extends BasicEmitter { * @param string $updaterUrl the url to check, i.e. 'http://apps.owncloud.com/updater.php' * @return array|bool */ - public function check($updaterUrl) { + public function check($updaterUrl = null) { // Look up the cache - it is invalidated all 30 minutes if ((\OC_Appconfig::getValue('core', 'lastupdatedat') + 1800) > time()) { return json_decode(\OC_Appconfig::getValue('core', 'lastupdateResult'), true); } + if (is_null($updaterUrl)) { + $updaterUrl = 'https://apps.owncloud.com/updater.php'; + } + \OC_Appconfig::setValue('core', 'lastupdatedat', time()); if (\OC_Appconfig::getValue('core', 'installedat', '') == '') { |