Code transitioning from PortableContacts.php to GServer.php

This commit is contained in:
Michael 2019-10-03 23:33:41 +00:00
parent 2009080327
commit d9a74bd5dd
6 changed files with 135 additions and 954 deletions

View file

@ -231,7 +231,7 @@ class GContact
}
// The server URL doesn't seem to be valid, so we don't store it.
if (!PortableContact::checkServer($gcontact['server_url'], $gcontact['network'])) {
if (!GServer::check($gcontact['server_url'])) {
$gcontact['server_url'] = "";
}
@ -541,7 +541,7 @@ class GContact
$j = json_decode($x);
if (!empty($j->entries)) {
foreach ($j->entries as $entry) {
PortableContact::checkServer($entry->url);
GServer::check($entry->url);
$url = $entry->url . '/poco';
if (!in_array($url, $done)) {