use OC_Connector_Sabre_Client

This commit is contained in:
Bjoern Schiessle 2012-07-06 12:24:03 +02:00
parent a5a1d929ca
commit 8353517969
1 changed files with 6 additions and 6 deletions

View File

@ -36,18 +36,18 @@ class OC_FileStorage_DAV extends OC_Filestorage_Common{
$this->root.='/';
}
$capath = '';
if($caview = \OCP\Files::getStorage('files_external')) {
$capath=\OCP\Config::getSystemValue('datadirectory').$caview->getAbsolutePath("");
}
$settings = array(
'baseUri' => $this->createBaseUri(),
'userName' => $this->user,
'password' => $this->password,
'capath' => $capath,
);
$this->client = new Sabre_DAV_Client($settings);
$this->client = new OC_Connector_Sabre_Client($settings);
if($caview = \OCP\Files::getStorage('files_external')) {
$this->client->setCurlSettings(array(CURLOPT_CAPATH => \OCP\Config::getSystemValue('datadirectory').$caview->getAbsolutePath(""),
CURLOPT_SSL_VERIFYPEER => false));
}
//create the root folder if necesary
$this->mkdir('');
}