summaryrefslogtreecommitdiffstats
path: root/lib/ocs
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2013-01-16 21:57:06 +0000
committerTom Needham <needham.thomas@gmail.com>2013-01-16 21:57:06 +0000
commita08e8632bb2fb0d3ec4c078af51aa2fdc76de888 (patch)
tree919fe1908bf306307682cfd915ad3483db689c31 /lib/ocs
parent0956cae39ea8380d42d03857a18fdab0a07ebe8c (diff)
downloadnextcloud-server-a08e8632bb2fb0d3ec4c078af51aa2fdc76de888.tar.gz
nextcloud-server-a08e8632bb2fb0d3ec4c078af51aa2fdc76de888.zip
Add <syncpollinterval> and order the result for /cloud/capabilities
Diffstat (limited to 'lib/ocs')
-rw-r--r--lib/ocs/cloud.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/ocs/cloud.php b/lib/ocs/cloud.php
index 29db1e6361c..7b94009b11c 100644
--- a/lib/ocs/cloud.php
+++ b/lib/ocs/cloud.php
@@ -26,14 +26,15 @@ class OC_OCS_Cloud {
public static function getCapabilities($parameters){
$result = array();
- $result['version'] = implode('.', OC_Util::getVersion());
- $result['versionstring'] = OC_Util::getVersionString();
+ $result['bigfilechunking'] = 'true';
$result['edition'] = OC_Util::getEditionString();
- $result['bugfilechunking'] = 'true';
$result['encryption'] = 'false';
- $result['versioning'] = OCP\App::isEnabled('files_versioning') ? 'true' : 'false';
- $result['undelete'] = 'true';
$result['installedapps'] = OC_App::getEnabledApps();
+ $result['syncpollinterval'] = 30;
+ $result['undelete'] = 'true';
+ $result['version'] = implode('.', OC_Util::getVersion());
+ $result['versioning'] = OCP\App::isEnabled('files_versioning') ? 'true' : 'false';
+ $result['versionstring'] = OC_Util::getVersionString();
return new OC_OCS_Result($result);
}