summaryrefslogtreecommitdiff
path: root/modules/drupal/drupal.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/drupal/drupal.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/drupal/drupal.module')
-rw-r--r--modules/drupal/drupal.module7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/drupal/drupal.module b/modules/drupal/drupal.module
index b856aac63..e54e9f22d 100644
--- a/modules/drupal/drupal.module
+++ b/modules/drupal/drupal.module
@@ -99,12 +99,13 @@ function drupal_xmlrpc() {
}
function drupal_notify($server) {
+ global $base_url;
$url = parse_url($server);
$client = new xmlrpc_client($url["path"], $url["host"], 80);
- $message = new xmlrpcmsg("drupal.site.ping", array(new xmlrpcval(path_uri(), "string"), new xmlrpcval(variable_get("site_name", ""), "string"), new xmlrpcval(variable_get("site_mail", ""), "string"), new xmlrpcval(variable_get("site_slogan", ""), "string"), new xmlrpcval(variable_get("site_mission", ""), "string")));
+ $message = new xmlrpcmsg("drupal.site.ping", array(new xmlrpcval($base_url, "string"), new xmlrpcval(variable_get("site_name", ""), "string"), new xmlrpcval(variable_get("site_mail", ""), "string"), new xmlrpcval(variable_get("site_slogan", ""), "string"), new xmlrpcval(variable_get("site_mission", ""), "string")));
$result = $client->send($message, 5);
@@ -185,11 +186,11 @@ function drupal_user($type, $edit, $user) {
$output .= form_item(t("$name ID"), $result);
}
else {
- // TODO: use a variation of path_uri() instead of $HTTP_HOST below
+ // TODO: use a variation of $base_url instead of $HTTP_HOST below
$output .= form_item(t("$name ID"), "$user->name@$HTTP_HOST");
}
return $output;
}
}
-?> \ No newline at end of file
+?>