- Patch #7957 by James: made the blogapi module send absolute URLs instead of relative URLs.

4.4.x
Dries Buytaert 2004-05-22 21:32:51 +00:00
parent 2e4bd3576e
commit ec69000cf4
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ function blogapi_get_users_blogs($req_params) {
$user = blogapi_validate_user($params[1], $params[2]);
if ($user->uid) {
$struct = new xmlrpcval(array('url' => new xmlrpcval(url('blog/' . $user->uid)),
$struct = new xmlrpcval(array('url' => new xmlrpcval(url('blog/' . $user->uid, NULL, NULL, true)),
'blogid' => new xmlrpcval($user->uid),
'blogName' => new xmlrpcval($user->name . "'s blog")),
'struct');
@ -67,7 +67,7 @@ function blogapi_get_user_info($req_params) {
'firstname' => new xmlrpcval($name[0], 'string'),
'nickname' => new xmlrpcval($user->name, 'string'),
'email' => new xmlrpcval($user->mail, 'string'),
'url' => new xmlrpcval(url('blog/view/' . $user->uid), 'string')),
'url' => new xmlrpcval(url('blog/view/' . $user->uid, NULL, NULL, true), 'string')),
'struct');
return new xmlrpcresp($struct);
}