mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Bugfixing PConfig
This commit is contained in:
parent
8b70ae6d46
commit
f3da5b3a2f
4 changed files with 10 additions and 8 deletions
|
@ -36,15 +36,15 @@ class ConfigFactory
|
|||
|
||||
/**
|
||||
* @param string $type The adapter type
|
||||
* @param int $uid The UID of the current user
|
||||
* @param Config\IPConfigCache $config The config cache of this adapter
|
||||
* @param int $uid The UID of the current user
|
||||
*
|
||||
* @return Config\IPConfigAdapter
|
||||
*/
|
||||
public static function createPConfig($type, $uid, $config)
|
||||
public static function createPConfig($type, $config, $uid = null)
|
||||
{
|
||||
if ($type == 'preload') {
|
||||
return new Config\PreloadPConfigAdapter($uid, $config);
|
||||
return new Config\PreloadPConfigAdapter($config, $uid);
|
||||
} else {
|
||||
return new Config\JITPConfigAdapter($config);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue