From d659fedb389a42173d18bfc2aea2628372579a52 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 7 Mar 2003 06:37:30 +0000 Subject: - Removed the path_uri() function in favor of the $base_url variable and fixes a handful of bugs introduced by the clean URL patch. --- modules/drupal/drupal.module | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules/drupal/drupal.module') 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 +?> -- cgit v1.2.3