mirror of
https://github.com/friendica/friendica
synced 2025-04-25 05:10:11 +00:00
Adapt BaseURL calls to new UriInterface
This commit is contained in:
parent
9e6d95284b
commit
f0c29edcde
101 changed files with 218 additions and 241 deletions
|
@ -236,7 +236,7 @@ class Profile extends BaseModule
|
|||
$_SESSION['return_path'] = $this->args->getQueryString();
|
||||
|
||||
$this->page['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('contact_head.tpl'), [
|
||||
'$baseurl' => $this->baseUrl->get(true),
|
||||
'$baseurl' => $this->baseUrl,
|
||||
]);
|
||||
|
||||
switch ($localRelationship->rel) {
|
||||
|
|
|
@ -166,7 +166,7 @@ class Redir extends \Friendica\BaseModule
|
|||
}
|
||||
|
||||
if ($this->session->getRemoteUserId()) {
|
||||
$host = substr($this->baseUrl->getUrlPath() . ($this->baseUrl->getUrlPath() ? '/' . $this->baseUrl->getUrlPath() : ''), strpos($this->baseUrl->getUrlPath(), '://') + 3);
|
||||
$host = substr($this->baseUrl->getPath() . ($this->baseUrl->getPath() ? '/' . $this->baseUrl->getPath() : ''), strpos($this->baseUrl->getPath(), '://') + 3);
|
||||
$remotehost = substr($contact['addr'], strpos($contact['addr'], '@') + 1);
|
||||
|
||||
// On a local instance we have to check if the local user has already authenticated
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue