Bugfixing PConfig

This commit is contained in:
Philipp Holzer 2019-02-03 23:22:05 +01:00
parent 8b70ae6d46
commit f3da5b3a2f
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
4 changed files with 10 additions and 8 deletions

View file

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