summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-10-15 01:13:22 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-10-17 12:30:33 (GMT)
commitbd666a86497606c2d018eced7aea29369f24e48c (patch)
tree84044b9b93c77dd87dfbfc19a2134b901ea08b45
parenta3d2e86ece5832d364f6c677a875a0d975003669 (diff)
downloadroundcubemail-plugins-kolab-bd666a86497606c2d018eced7aea29369f24e48c.tar.gz
Set supported API version
-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 35df58c..81d0afc 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
*/
@@ -621,7 +624,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();