mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:10:11 +00:00
Bugfixing PConfig
This commit is contained in:
parent
8b70ae6d46
commit
f3da5b3a2f
4 changed files with 10 additions and 8 deletions
|
@ -23,13 +23,15 @@ class PreloadPConfigAdapter implements IPConfigAdapter
|
|||
private $config;
|
||||
|
||||
/**
|
||||
* @param int $uid The UID of the current user
|
||||
* @param IPConfigCache $config The config cache of this adapter
|
||||
* @param int $uid The UID of the current user
|
||||
*/
|
||||
public function __construct($uid, $config)
|
||||
public function __construct($config, $uid = null)
|
||||
{
|
||||
$this->config = $config;
|
||||
$this->load($uid, 'config');
|
||||
if (isset($uid)) {
|
||||
$this->load($uid, 'config');
|
||||
}
|
||||
}
|
||||
|
||||
public function load($uid, $family)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue