Commit bf176c1d authored by Dries's avatar Dries
Browse files

- weblogs.module:
   + made it use the new node table scheme
   + added the site's slogan to the ping
parent 7c181aba
......@@ -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());
}
......
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