- weblogs.module:

+ made it use the new node table scheme
   + added the site's slogan to the ping
4.0.x
Dries Buytaert 2001-10-31 21:31:20 +00:00
parent 7c181aba6d
commit bf176c1d67
1 changed files with 2 additions and 2 deletions

View File

@ -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());
}