mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 07:23:40 +00:00
Move PConfig::load() to DI::pConfig()->load()
This commit is contained in:
parent
bc62d7ad0f
commit
2a35176588
2 changed files with 2 additions and 2 deletions
|
@ -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