Bugfixing PConfig

This commit is contained in:
Philipp Holzer
2019-02-03 23:22:05 +01:00
parent 8b70ae6d46
commit f3da5b3a2f
4 changed files with 10 additions and 8 deletions

View File

@@ -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);
}