mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Fixed new "user config" console feature
- Replaced "DI::" call with constructor injection - Added return value for IPConfig::load() and PreloadPConfig::load()
This commit is contained in:
parent
e41283faff
commit
d1d5cb2857
3 changed files with 10 additions and 4 deletions
|
@ -35,7 +35,7 @@ interface IPConfig
|
|||
* @param int $uid The user_id
|
||||
* @param string $cat The category of the configuration value
|
||||
*
|
||||
* @return void
|
||||
* @return array The loaded config array
|
||||
* @see Cache
|
||||
*
|
||||
*/
|
||||
|
|
|
@ -68,6 +68,8 @@ class PreloadPConfig extends BasePConfig
|
|||
|
||||
// load the whole category out of the DB into the cache
|
||||
$this->configCache->load($uid, $config);
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue