1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +01:00

Contacts: fix more namespace errors.

This commit is contained in:
Thomas Tanghus 2012-11-26 23:09:19 +01:00
parent 040d79bc21
commit 86b081ad80

View File

@ -383,7 +383,7 @@ class VCard {
*/
public static function addFromDAVData($id, $uri, $data) {
try {
$vcard = Sabre\VObject\Reader::read($data);
$vcard = \Sabre\VObject\Reader::read($data);
return self::add($id, $vcard, $uri);
} catch(\Exception $e) {
\OCP\Util::writeLog('contacts', __METHOD__.', exception: '.$e->getMessage(), \OCP\Util::ERROR);
@ -520,7 +520,7 @@ class VCard {
public static function editFromDAVData($aid, $uri, $data) {
$oldcard = self::findWhereDAVDataIs($aid, $uri);
try {
$vcard = Sabre\VObject\Reader::read($data);
$vcard = \Sabre\VObject\Reader::read($data);
} catch(\Exception $e) {
\OCP\Util::writeLog('contacts', __METHOD__.
', Unable to parse VCARD, : ' . $e->getMessage(), \OCP\Util::ERROR);