diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-03-07 06:37:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-03-07 06:37:30 +0000 |
commit | d659fedb389a42173d18bfc2aea2628372579a52 (patch) | |
tree | 9a8ae00e584b4915613d876e521250dfc53802ec /modules/bloggerapi.module | |
parent | d5fe0cfe2017241094a84e4c4fb6bfdf1928f8eb (diff) | |
download | brdo-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/bloggerapi.module')
-rw-r--r-- | modules/bloggerapi.module | 7 |
1 files changed, 2 insertions, 5 deletions
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"), |