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
17 changed files with 68 additions and 82 deletions
+3 -2
View File
@@ -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);