diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-07-13 18:46:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-07-13 18:46:15 +0000 |
commit | ed3bf725bb3b22f65efbe5c9c3d96c8e6f1a0fd2 (patch) | |
tree | f515f8883e24acc88c5388d61db1c3afd8dfc79b /modules/ping | |
parent | 73010a5215325763c301110ba108bb98b0a4cb98 (diff) | |
download | brdo-ed3bf725bb3b22f65efbe5c9c3d96c8e6f1a0fd2.tar.gz brdo-ed3bf725bb3b22f65efbe5c9c3d96c8e6f1a0fd2.tar.bz2 |
- Patch #26391 by chx: replaced the old XML-RPC library with a smaller/better/working one.
Diffstat (limited to 'modules/ping')
-rw-r--r-- | modules/ping/ping.module | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/ping/ping.module b/modules/ping/ping.module index bf392c586..4b88e861c 100644 --- a/modules/ping/ping.module +++ b/modules/ping/ping.module @@ -57,12 +57,9 @@ function _ping_notify($name, $url) { */ function ping_ping($name = '', $url = '') { - $feed = url('node/feed', NULL, NULL, TRUE); - $client = new xmlrpc_client('/', 'rpc.pingomatic.com', 80); - $message = new xmlrpcmsg('weblogUpdates.ping', array(new xmlrpcval($name), new xmlrpcval($url))); - $result = $client->send($message); + $result = xmlrpc('http://rpc.pingomatic.com', 'weblogUpdates.ping', $name, $url); - if (!$result || $result->faultCode()) { + if ($result === FALSE) { watchdog('directory ping', t('Failed to notify pingomatic.com (site).'), WATCHDOG_WARNING); } } |