- Patch #7957 by James: made the blogapi module send absolute URLs instead of relative URLs.
parent
2e4bd3576e
commit
ec69000cf4
|
@ -43,7 +43,7 @@ function blogapi_get_users_blogs($req_params) {
|
||||||
|
|
||||||
$user = blogapi_validate_user($params[1], $params[2]);
|
$user = blogapi_validate_user($params[1], $params[2]);
|
||||||
if ($user->uid) {
|
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),
|
'blogid' => new xmlrpcval($user->uid),
|
||||||
'blogName' => new xmlrpcval($user->name . "'s blog")),
|
'blogName' => new xmlrpcval($user->name . "'s blog")),
|
||||||
'struct');
|
'struct');
|
||||||
|
@ -67,7 +67,7 @@ function blogapi_get_user_info($req_params) {
|
||||||
'firstname' => new xmlrpcval($name[0], 'string'),
|
'firstname' => new xmlrpcval($name[0], 'string'),
|
||||||
'nickname' => new xmlrpcval($user->name, 'string'),
|
'nickname' => new xmlrpcval($user->name, 'string'),
|
||||||
'email' => new xmlrpcval($user->mail, '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');
|
'struct');
|
||||||
return new xmlrpcresp($struct);
|
return new xmlrpcresp($struct);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue