mirror of
https://github.com/friendica/friendica
synced 2025-04-25 04:30:11 +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
|
@ -20,7 +20,7 @@ abstract class AbstractCacheDriver extends BaseObject
|
|||
protected function getCacheKey($key)
|
||||
{
|
||||
// We fetch with the hostname as key to avoid problems with other applications
|
||||
return self::getApp()->get_hostname() . ":" . $key;
|
||||
return self::getApp()->getHostName() . ":" . $key;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -34,7 +34,7 @@ abstract class AbstractCacheDriver extends BaseObject
|
|||
} else {
|
||||
// Keys are prefixed with the node hostname, let's remove it
|
||||
array_walk($keys, function (&$value) {
|
||||
$value = preg_replace('/^' . self::getApp()->get_hostname() . ':/', '', $value);
|
||||
$value = preg_replace('/^' . self::getApp()->getHostName() . ':/', '', $value);
|
||||
});
|
||||
|
||||
sort($keys);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue