1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

use public API method instead of deprecated private namespace method

This commit is contained in:
Morris Jobke 2015-12-18 11:35:05 +01:00
parent c5c1e765ce
commit b798d8b386

View File

@ -165,7 +165,7 @@ SQL;
'addressBookId' => $addressbookKey,
'contactId' => $contact->getId()
));
$url = \OC_Helper::makeURLAbsolute($url);
$url = \OC::$server->getURLGenerator()->getAbsoluteURL($url);
$j['data']['PHOTO'] = "VALUE=uri:$url";
}
$results[] = $this->convertToSearchResult($j);