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
|
@ -8,6 +8,7 @@ use Friendica\Core\PConfig;
|
|||
use Friendica\Core\Update;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\GContact;
|
||||
use Friendica\Model\Item;
|
||||
|
@ -139,7 +140,7 @@ function update_1191()
|
|||
|
||||
if ($key === 'show_on_profile') {
|
||||
if ($value) {
|
||||
PConfig::set($uid, feature, forumlist_profile, $value);
|
||||
DI::pConfig()->set($uid, feature, forumlist_profile, $value);
|
||||
}
|
||||
|
||||
PConfig::delete($uid, $family, $key);
|
||||
|
@ -147,7 +148,7 @@ function update_1191()
|
|||
|
||||
if ($key === 'show_on_network') {
|
||||
if ($value) {
|
||||
PConfig::set($uid, feature, forumlist_widget, $value);
|
||||
DI::pConfig()->set($uid, feature, forumlist_widget, $value);
|
||||
}
|
||||
|
||||
PConfig::delete($uid, $family, $key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue