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

pull/946/head
nupplaPhil 2020-01-18 15:59:01 +01:00
parent bc62d7ad0f
commit 2a35176588
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
2 changed files with 2 additions and 2 deletions

View File

@ -580,7 +580,7 @@ function statusnet_post_hook(App $a, &$b)
Logger::log('GNU Socialpost invoked'); Logger::log('GNU Socialpost invoked');
PConfig::load($b['uid'], 'statusnet'); DI::pConfig()->load($b['uid'], 'statusnet');
$api = PConfig::get($b['uid'], 'statusnet', 'baseapi'); $api = PConfig::get($b['uid'], 'statusnet', 'baseapi');
$ckey = PConfig::get($b['uid'], 'statusnet', 'consumerkey'); $ckey = PConfig::get($b['uid'], 'statusnet', 'consumerkey');

View File

@ -588,7 +588,7 @@ function twitter_post_hook(App $a, array &$b)
Logger::notice('twitter post invoked', ['id' => $b['id'], 'guid' => $b['guid']]); Logger::notice('twitter post invoked', ['id' => $b['id'], 'guid' => $b['guid']]);
PConfig::load($b['uid'], 'twitter'); DI::pConfig()->load($b['uid'], 'twitter');
$ckey = Config::get('twitter', 'consumerkey'); $ckey = Config::get('twitter', 'consumerkey');
$csecret = Config::get('twitter', 'consumersecret'); $csecret = Config::get('twitter', 'consumersecret');