1
0
Fork 0

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

This commit is contained in:
Philipp Holzer 2020-01-18 16:54:50 +01:00
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

@ -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);