mirror of
https://github.com/friendica/friendica
synced 2025-04-28 00:30:10 +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
|
@ -1166,7 +1166,7 @@ class Item extends BaseObject
|
|||
if ($notify) {
|
||||
// We have to avoid duplicates. So we create the GUID in form of a hash of the plink or uri.
|
||||
// We add the hash of our own host because our host is the original creator of the post.
|
||||
$prefix_host = get_app()->get_hostname();
|
||||
$prefix_host = get_app()->getHostName();
|
||||
} else {
|
||||
$prefix_host = '';
|
||||
|
||||
|
@ -2361,7 +2361,7 @@ class Item extends BaseObject
|
|||
$guid = System::createUUID();
|
||||
}
|
||||
|
||||
return self::getApp()->get_baseurl() . '/objects/' . $guid;
|
||||
return self::getApp()->getBaseURL() . '/objects/' . $guid;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2644,7 +2644,7 @@ class Item extends BaseObject
|
|||
}
|
||||
|
||||
// Prevent to forward already forwarded posts
|
||||
if ($datarray["app"] == $a->get_hostname()) {
|
||||
if ($datarray["app"] == $a->getHostName()) {
|
||||
logger('Already forwarded (second test)', LOGGER_DEBUG);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue