summaryrefslogtreecommitdiff
path: root/plugins/kolab_files
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-10-15 01:13:22 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-10-15 01:13:22 (GMT)
commit538edd1707f763721222675142df250b2e0f7f3a (patch)
tree4d29f5b7dd6073a1051b7c105dccd6e877a52951 /plugins/kolab_files
parent71f24efbdd7b57d2bed4351ebedc6c04e40cb994 (diff)
downloadroundcubemail-plugins-kolab-538edd1707f763721222675142df250b2e0f7f3a.tar.gz
Set supported API version
Diffstat (limited to 'plugins/kolab_files')
-rw-r--r--plugins/kolab_files/lib/kolab_files_engine.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/kolab_files/lib/kolab_files_engine.php b/plugins/kolab_files/lib/kolab_files_engine.php
index 4dce8eb..bbcd666 100644
--- a/plugins/kolab_files/lib/kolab_files_engine.php
+++ b/plugins/kolab_files/lib/kolab_files_engine.php
@@ -29,6 +29,9 @@ class kolab_files_engine
private $timeout = 600;
private $sort_cols = array('name', 'mtime', 'size');
+ const API_VERSION = 2;
+
+
/**
* Class constructor
*/
@@ -629,7 +632,7 @@ class kolab_files_engine
}
// Go with authenticate request
- $url->setQueryVariables(array('method' => 'authenticate'));
+ $url->setQueryVariables(array('method' => 'authenticate', 'version' => self::API_VERSION));
$request->setUrl($url);
$request->setAuth($this->rc->user->get_username(), $this->rc->decrypt($_SESSION['password']));
$response = $request->send();