From 7a9bc86bd2f0ba3ba343e014a2e4c7f99d7f0946 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 3 Oct 2001 20:57:01 +0000 Subject: - Improved search architecture derived from Axel's new search patches. (There is room for improvement so let's go from these ... and build on them.) - Removed some $status's by calls to node_status(). --- modules/weblogs.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/weblogs.module') diff --git a/modules/weblogs.module b/modules/weblogs.module index 5490572cf..50660cffa 100644 --- a/modules/weblogs.module +++ b/modules/weblogs.module @@ -3,7 +3,7 @@ function weblogs_cron() { if (db_num_rows(db_query("SELECT nid FROM node WHERE status = '". node_status("posted") ."' AND timestamp > '". variable_get("weblogs_cron_last", time()) ."'", 1))) { - weblogs_notify(variable_get("site_name", "drupal") , path_uri()); + weblogs_notify(variable_get("site_name", "drupal") , path_uri()); } variable_set("weblogs_cron_last", time()); } @@ -13,7 +13,7 @@ function weblogs_notify($name, $url) { $client = new xmlrpc_client("/RPC2", "rpc.weblogs.com", 80); $message = new xmlrpcmsg("weblogUpdates.ping", array(new xmlrpcval($name), new xmlrpcval($url))); - + $result = $client->send($message); if (!$result || $result->faultCode()) { -- cgit v1.2.3