}
if (!strstr($handshake_xml, '<')) {
- logger('poller: response from ' . $url . ' did not contain XML.');
+ logger('response from ' . $url . ' did not contain XML.');
- mark_for_death($contact);
+ Contact::markForArchival($contact);
$fields = array('last-update' => datetime_convert(), 'failure_update' => datetime_convert());
dba::update('contact', $fields, array('id' => $contact['id']));
$fields = array('last-update' => datetime_convert(), 'failure_update' => datetime_convert());
dba::update('contact', $fields, array('id' => $contact['id']));
- mark_for_death($contact);
+ Contact::markForArchival($contact);
} elseif ($contact['term-date'] > NULL_DATE) {
- logger("poller: $url back from the dead - removing mark for death");
+ logger("$url back from the dead - removing mark for death");
- unmark_for_death($contact);
+ Contact::unmarkForArchival($contact);
}
if ((intval($res->status) != 0) || !strlen($res->challenge) || !strlen($res->dfrn_id)) {