mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Move PConfig::set() to DI::pConfig()->set()
This commit is contained in:
parent
9e9429b56d
commit
88bb66371c
17 changed files with 68 additions and 82 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue