$o .= '<p>' . $counter . '/' . $total . ': ' . $url;
- $curlResult = Probe::uri($url);
- if ($curlResult['network'] == Protocol::OSTATUS) {
+ $probed = Probe::uri($url);
+ if ($probed['network'] == Protocol::OSTATUS) {
$result = Contact::createFromProbe($uid, $url, true, Protocol::OSTATUS);
if ($result['success']) {
$o .= ' - ' . L10n::t('success');
if ($curlResult->isTimeout()) {
return false;
}
- $pubkey = $curlResult['body'];
+ $pubkey = $curlResult->getBody();
}
$key = explode(".", $pubkey);
$curlResult = Network::curl($url);
if ($curlResult->isSuccess()) {
- $data = json_decode($curlResult["body"], true);
+ $data = json_decode($curlResult->getBody(), true);
if (!empty($data)) {
self::discoverServer($data, 3);