parameters and getURLpath to getURLPath

This commit is contained in:
Philipp Holzer 2018-10-10 01:18:47 +02:00
parent 3eb4332f33
commit 307286fc47
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
12 changed files with 22 additions and 22 deletions

View file

@ -453,8 +453,8 @@ function dfrn_request_post(App $a)
if ($network == Protocol::DIASPORA) {
$uri = $nickname . '@' . $a->getHostName();
if ($a->getURLpath()) {
$uri .= '/' . $a->getURLpath();
if ($a->getURLPath()) {
$uri .= '/' . $a->getURLPath();
}
$uri = urlencode($uri);
@ -609,7 +609,7 @@ function dfrn_request_content(App $a)
} elseif (x($_GET, 'address') && ($_GET['address'] != "")) {
$myaddr = $_GET['address'];
} elseif (local_user()) {
if (strlen($a->getURLpath())) {
if (strlen($a->getURLPath())) {
$myaddr = System::baseUrl() . '/profile/' . $a->user['nickname'];
} else {
$myaddr = $a->user['nickname'] . '@' . substr(System::baseUrl(), strpos(System::baseUrl(), '://') + 3);