1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-02-07 01:54:16 +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, 'addressBookId' => $addressbookKey,
'contactId' => $contact->getId() 'contactId' => $contact->getId()
)); ));
$url = \OC_Helper::makeURLAbsolute($url); $url = \OC::$server->getURLGenerator()->getAbsoluteURL($url);
$j['data']['PHOTO'] = "VALUE=uri:$url"; $j['data']['PHOTO'] = "VALUE=uri:$url";
} }
$results[] = $this->convertToSearchResult($j); $results[] = $this->convertToSearchResult($j);