mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Apply suggestions from code review
Co-authored-by: Philipp <admin+Github@philipp.info>
This commit is contained in:
parent
cff3dd67b0
commit
8fea67dade
11 changed files with 29 additions and 29 deletions
|
@ -791,8 +791,8 @@ function twitter_post_hook(App $a, array &$b)
|
|||
|
||||
function twitter_addon_admin_post(App $a)
|
||||
{
|
||||
$consumerkey = !empty($_POST['consumerkey']) ? trim($_POST['consumerkey']) : '';
|
||||
$consumersecret = !empty($_POST['consumersecret']) ? trim($_POST['consumersecret']) : '';
|
||||
$consumerkey = trim($_POST['consumerkey'] ?? : '');
|
||||
$consumersecret = trim($_POST['consumersecret'] ?? '');
|
||||
DI::config()->set('twitter', 'consumerkey', $consumerkey);
|
||||
DI::config()->set('twitter', 'consumersecret', $consumersecret);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue