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/bloggerapi.module | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'modules/bloggerapi.module') diff --git a/modules/bloggerapi.module b/modules/bloggerapi.module index 796fa6758..722447f2f 100644 --- a/modules/bloggerapi.module +++ b/modules/bloggerapi.module @@ -223,10 +223,7 @@ function bloggerapi_user_blogs() { global $user; if ($user->uid) { - $struct = new xmlrpcval(array("url" => new xmlrpcval(path_uri() . url("blog/view". urlencode($user->uid))), - "blogid" => new xmlrpcval($user->uid), - "blogName" => new xmlrpcval($user->name . "'s blog at ". variable_get("site_name", "drupal")) - ),"struct"); + $struct = new xmlrpcval(array("url" => new xmlrpcval(url("blog/view". urlencode($user->uid))), "blogid" => new xmlrpcval($user->uid), "blogName" => new xmlrpcval($user->name . "'s blog at ". variable_get("site_name", "drupal"))),"struct"); return new xmlrpcval(array($struct), "array"); } else { @@ -240,7 +237,7 @@ function bloggerapi_user_info() { if ($user->uid) { return new xmlrpcval(array("nickname" => new xmlrpcval($user->name, "string"), "userid" => new xmlrpcval($user->id, "string"), - "url" => new xmlrpcval(path_uri() . url("blog/view/". urlencode($user->uid)), "string"), + "url" => new xmlrpcval(url("blog/view/". urlencode($user->uid)), "string"), "email" => new xmlrpcval($user->mail, "string"), "lastname" => new xmlrpcval(substr($user->name, strrpos($user->name," ")+1), "string"), "firstname" => new xmlrpcval(substr($user->name, 0, strrpos($user->name," ")), "string"), -- cgit v1.2.3