plugins/kolab_files
Aleksander Machniak
machniak at kolabsys.com
Thu Oct 16 14:55:25 CEST 2014
plugins/kolab_files/lib/kolab_files_engine.php | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 538edd1707f763721222675142df250b2e0f7f3a
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Tue Oct 14 21:13:22 2014 -0400
Set supported API version
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();
More information about the commits
mailing list