Move PConfig::set() to DI::pConfig()->set()
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user