Merge pull request #1205 from AlfredSK/patch-2

Fix WSOD twitter
This commit is contained in:
Michael Vogel 2021-11-07 16:40:28 +01:00 committed by GitHub
commit ef71f4681e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -791,7 +791,7 @@ function twitter_post_hook(App $a, array &$b)
function twitter_addon_admin_post(App $a) function twitter_addon_admin_post(App $a)
{ {
$consumerkey = trim($_POST['consumerkey'] ?? : ''); $consumerkey = trim($_POST['consumerkey'] ?? '');
$consumersecret = trim($_POST['consumersecret'] ?? ''); $consumersecret = trim($_POST['consumersecret'] ?? '');
DI::config()->set('twitter', 'consumerkey', $consumerkey); DI::config()->set('twitter', 'consumerkey', $consumerkey);
DI::config()->set('twitter', 'consumersecret', $consumersecret); DI::config()->set('twitter', 'consumersecret', $consumersecret);