Move PConfig::set() to DI::pConfig()->set()

This commit is contained in:
nupplaPhil 2020-01-18 16:54:50 +01:00
parent 9e9429b56d
commit 88bb66371c
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
17 changed files with 68 additions and 82 deletions

View file

@ -19,21 +19,6 @@ use Friendica\DI;
*/
class PConfig
{
/**
* @brief Sets a configuration value for a user
*
* @param int $uid The user_id
* @param string $cat The category of the configuration value
* @param string $key The configuration key to set
* @param mixed $value The value to store
*
* @return bool Operation success
*/
public static function set(int $uid, string $cat, string $key, $value)
{
return DI::pConfig()->set($uid, $cat, $key, $value);
}
/**
* @brief Deletes the given key from the users's configuration.
*

View file

@ -159,7 +159,7 @@ class UserImport
}
$newuid = self::lastInsertId();
PConfig::set($newuid, 'system', 'previous_addr', $old_handle);
DI::pConfig()->set($newuid, 'system', 'previous_addr', $old_handle);
foreach ($account['profile'] as &$profile) {
foreach ($profile as $k => &$v) {