forked from friendica/friendica-addons
Move PConfig::load() to DI::pConfig()->load()
This commit is contained in:
parent
bc62d7ad0f
commit
2a35176588
|
@ -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');
|
||||||
|
|
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue