mirror of
https://github.com/friendica/friendica
synced 2025-04-27 23:10:12 +00:00
Ensure that the baseurl return value is a string
This commit is contained in:
parent
4c40bc164d
commit
e13a31c4fe
12 changed files with 15 additions and 21 deletions
|
@ -64,9 +64,9 @@ class HCard extends BaseModule
|
|||
$page['htmlhead'] .= '<link rel="openid.delegate" href="' . $delegate . '" />' . "\r\n";
|
||||
}
|
||||
|
||||
$baseUrl = DI::baseUrl();
|
||||
$baseUrl = (string)DI::baseUrl();
|
||||
|
||||
$uri = urlencode('acct:' . $profile['nickname'] . '@' . $baseUrl->getHost() . ($baseUrl->getPath() ? '/' . $baseUrl->getPath() : ''));
|
||||
$uri = urlencode('acct:' . $profile['nickname'] . '@' . DI::baseUrl()->getHost() . (DI::baseUrl()->getPath() ? '/' . DI::baseUrl()->getPath() : ''));
|
||||
|
||||
$page['htmlhead'] .= '<meta name="dfrn-global-visibility" content="' . ($profile['net-publish'] ? 'true' : 'false') . '" />' . "\r\n";
|
||||
$page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" href="' . $baseUrl . '/dfrn_poll/' . $nickname . '" />' . "\r\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue