Set supported API version
This commit is contained in:
parent
71f24efbdd
commit
538edd1707
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue