summaryrefslogtreecommitdiff
path: root/modules/weblogs.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-10-31 21:31:20 +0000
committerDries Buytaert <dries@buytaert.net>2001-10-31 21:31:20 +0000
commitbf176c1d67d2dac74dc4996ddeb64ab5ea553fc4 (patch)
treef673e42087370acd3038ee80e78192f8f381f99a /modules/weblogs.module
parent7c181aba6dcf4fdee2cdada09d35aa718d25f431 (diff)
downloadbrdo-bf176c1d67d2dac74dc4996ddeb64ab5ea553fc4.tar.gz
brdo-bf176c1d67d2dac74dc4996ddeb64ab5ea553fc4.tar.bz2
- weblogs.module:
+ made it use the new node table scheme + added the site's slogan to the ping
Diffstat (limited to 'modules/weblogs.module')
-rw-r--r--modules/weblogs.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/weblogs.module b/modules/weblogs.module
index aaa21e10d..24daac3f4 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());
}