diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-10-17 11:42:10 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-10-20 14:44:42 +0200 |
commit | 6af0e76a03b59e82a30e80ea726b274e431a9b61 (patch) | |
tree | 07c949ee5673c5ccf32d8774b8efe2075ebef078 /lib/private/updater.php | |
parent | 8da6e4b9f09d6d7a03fb602c6d5fe73e87b96a87 (diff) | |
download | nextcloud-server-6af0e76a03b59e82a30e80ea726b274e431a9b61.tar.gz nextcloud-server-6af0e76a03b59e82a30e80ea726b274e431a9b61.zip |
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', '') == '') { |