From aec5ab3ad2adc33a32158156a59f4c00606f8be9 Mon Sep 17 00:00:00 2001 From: Tom Needham Date: Mon, 4 Feb 2013 18:34:28 +0000 Subject: Remove app related values and change structure of /cloud/capabilties call --- lib/ocs/cloud.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib/ocs') 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); } -- cgit v1.2.3