summaryrefslogtreecommitdiffstats
path: root/lib/private/updater.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-10-17 11:42:10 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-10-20 14:44:42 +0200
commit6af0e76a03b59e82a30e80ea726b274e431a9b61 (patch)
tree07c949ee5673c5ccf32d8774b8efe2075ebef078 /lib/private/updater.php
parent8da6e4b9f09d6d7a03fb602c6d5fe73e87b96a87 (diff)
downloadnextcloud-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.php6
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', '') == '') {