Browse Source

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

pull/946/head
nupplaPhil 3 years ago
parent
commit
2a35176588
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
  1. 2
      statusnet/statusnet.php
  2. 2
      twitter/twitter.php

2
statusnet/statusnet.php

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

2
twitter/twitter.php

@ -588,7 +588,7 @@ function twitter_post_hook(App $a, array &$b)
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');
$csecret = Config::get('twitter', 'consumersecret');

Loading…
Cancel
Save