diff options
author | Tom Needham <needham.thomas@gmail.com> | 2013-02-04 18:34:28 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2013-02-04 18:34:28 +0000 |
commit | aec5ab3ad2adc33a32158156a59f4c00606f8be9 (patch) | |
tree | 92d9e8b37e5d17e2df5c71c4fb438a2eb5ad3486 /lib/ocs | |
parent | a08e8632bb2fb0d3ec4c078af51aa2fdc76de888 (diff) | |
download | nextcloud-server-aec5ab3ad2adc33a32158156a59f4c00606f8be9.tar.gz nextcloud-server-aec5ab3ad2adc33a32158156a59f4c00606f8be9.zip |
Remove app related values and change structure of /cloud/capabilties call
Diffstat (limited to 'lib/ocs')
-rw-r--r-- | lib/ocs/cloud.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/ocs/cloud.php b/lib/ocs/cloud.php index 7b94009b11c..567defa6633 100644 --- a/lib/ocs/cloud.php +++ b/lib/ocs/cloud.php @@ -26,15 +26,15 @@ class OC_OCS_Cloud { public static function getCapabilities($parameters){ $result = array(); - $result['bigfilechunking'] = 'true'; - $result['edition'] = OC_Util::getEditionString(); - $result['encryption'] = 'false'; - $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(); + list($major, $minor, $micro) = OC_Util::getVersion(); + $result['version'] = array( + 'major' => $major, + 'minor' => $minor, + 'micro' => $micro, + 'string' => OC_Util::getVersionString(), + 'edition' => OC_Util::getEditionString(), + ); + $result['apps'] = array(); return new OC_OCS_Result($result); } |