summaryrefslogtreecommitdiff
path: root/modules/ping.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-03-07 06:37:30 +0000
committerDries Buytaert <dries@buytaert.net>2003-03-07 06:37:30 +0000
commitd659fedb389a42173d18bfc2aea2628372579a52 (patch)
tree9a8ae00e584b4915613d876e521250dfc53802ec /modules/ping.module
parentd5fe0cfe2017241094a84e4c4fb6bfdf1928f8eb (diff)
downloadbrdo-d659fedb389a42173d18bfc2aea2628372579a52.tar.gz
brdo-d659fedb389a42173d18bfc2aea2628372579a52.tar.bz2
- Removed the path_uri() function in favor of the $base_url variable and
fixes a handful of bugs introduced by the clean URL patch.
Diffstat (limited to 'modules/ping.module')
-rw-r--r--modules/ping.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/ping.module b/modules/ping.module
index 40fe2adfd..1cfba0d6e 100644
--- a/modules/ping.module
+++ b/modules/ping.module
@@ -18,9 +18,11 @@ function ping_system($field){
}
function ping_cron() {
+ global $base_url;
+
if (variable_get("site_name", 0) && variable_get("site_slogan", 0)) {
if (db_num_rows(db_query("SELECT nid FROM node WHERE status = 1 AND moderate = 0 AND (created > '". variable_get("ping_cron_last", time()) ."' OR changed > '". variable_get("ping_cron_last", time()) ."')"), 1)) {
- _ping_notify(variable_get("site_name", "") ." - ". variable_get("site_slogan", ""), path_uri());
+ _ping_notify(variable_get("site_name", "") ." - ". variable_get("site_slogan", ""), $base_url);
}
variable_set("ping_cron_last", time());