From bf176c1d67d2dac74dc4996ddeb64ab5ea553fc4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Wed, 31 Oct 2001 21:31:20 +0000 Subject: [PATCH] - weblogs.module: + made it use the new node table scheme + added the site's slogan to the ping --- modules/weblogs.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/weblogs.module b/modules/weblogs.module index aaa21e10df69..24daac3f4170 100644 --- a/modules/weblogs.module +++ b/modules/weblogs.module @@ -3,8 +3,8 @@ 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()); + if (db_num_rows(db_query("SELECT nid FROM node WHERE status = 1 AND moderate = 0 AND (created > '". variable_get("weblogs_cron_last", time()) ."' OR changed > '". variable_get("weblogs_cron_last", time()) ."')"), 1)) { +// weblogs_notify(variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", ""), path_uri()); } variable_set("weblogs_cron_last", time()); } -- GitLab