mirror of
https://github.com/friendica/friendica
synced 2025-04-23 16:30:12 +00:00
Rename App Methods
- renamed a lot of App methods to CamelCase - replaced direct public variables with get-/set-Methods
This commit is contained in:
parent
5f9dd11cfb
commit
5a02e39a65
94 changed files with 481 additions and 338 deletions
|
@ -451,10 +451,10 @@ function dfrn_request_post(App $a)
|
|||
// Diaspora needs the uri in the format user@domain.tld
|
||||
// Diaspora will support the remote subscription in a future version
|
||||
if ($network == Protocol::DIASPORA) {
|
||||
$uri = $nickname . '@' . $a->get_hostname();
|
||||
$uri = $nickname . '@' . $a->getHostName();
|
||||
|
||||
if ($a->get_path()) {
|
||||
$uri .= '/' . $a->get_path();
|
||||
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->urlpath)) {
|
||||
if (strlen($a->getURLpath())) {
|
||||
$myaddr = System::baseUrl() . '/profile/' . $a->user['nickname'];
|
||||
} else {
|
||||
$myaddr = $a->user['nickname'] . '@' . substr(System::baseUrl(), strpos(System::baseUrl(), '://') + 3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue