From 538edd1707f763721222675142df250b2e0f7f3a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 14 Oct 2014 21:13:22 -0400 Subject: [PATCH] Set supported API version --- plugins/kolab_files/lib/kolab_files_engine.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/kolab_files/lib/kolab_files_engine.php b/plugins/kolab_files/lib/kolab_files_engine.php index 4dce8eb2..bbcd666e 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();