- weblogs.module:
+ made it use the new node table scheme + added the site's slogan to the ping4.0.x
parent
7c181aba6d
commit
bf176c1d67
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
function weblogs_cron() {
|
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))) {
|
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") , path_uri());
|
// weblogs_notify(variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", ""), path_uri());
|
||||||
}
|
}
|
||||||
variable_set("weblogs_cron_last", time());
|
variable_set("weblogs_cron_last", time());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue