Commit cf98e0a1 authored by Dries's avatar Dries
Browse files

- Patch #7314 by jluster: added support to ping technorati.com

parent ee4ccb6e
......@@ -75,5 +75,18 @@ function ping_ping($name = "", $url = "") {
watchdog("error", "failed to notify 'blo.gs' ");
}
unset($client);
$client = new xmlrpc_client("/rpc/ping", "rpc.technorati.com", 80);
$message = new xmlrpcmsg("weblogUpdates.ping", array(new xmlrpcval($name), new xmlrpcval($url)));
$result = $client->send($message);
if (!$result || $result->faultCode()) {
watchdog("error", "failed to notify 'technorati.com'");
}
}
?>
......@@ -75,5 +75,18 @@ function ping_ping($name = "", $url = "") {
watchdog("error", "failed to notify 'blo.gs' ");
}
unset($client);
$client = new xmlrpc_client("/rpc/ping", "rpc.technorati.com", 80);
$message = new xmlrpcmsg("weblogUpdates.ping", array(new xmlrpcval($name), new xmlrpcval($url)));
$result = $client->send($message);
if (!$result || $result->faultCode()) {
watchdog("error", "failed to notify 'technorati.com'");
}
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment