From 2a35176588ac215ddb81dc797096d61ba25cffca Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Sat, 18 Jan 2020 15:59:01 +0100 Subject: [PATCH] Move PConfig::load() to DI::pConfig()->load() --- statusnet/statusnet.php | 2 +- twitter/twitter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 1d858384..4494d8ec 100644 --- a/statusnet/statusnet.php +++ b/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'); diff --git a/twitter/twitter.php b/twitter/twitter.php index 18625f8b..9acbc34c 100644 --- a/twitter/twitter.php +++ b/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'); -- 2.39.5