From: Michael Vogel Date: Sun, 15 Jun 2014 11:18:37 +0000 (+0200) Subject: buffer: It wasn't possible to save client id and client secret X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c5d37edf5314ec373d8bc2c417ecdf8aa7c94979;p=friendica-addons.git buffer: It wasn't possible to save client id and client secret --- diff --git a/buffer/buffer.php b/buffer/buffer.php index 4b81fb31..99e1233b 100644 --- a/buffer/buffer.php +++ b/buffer/buffer.php @@ -60,6 +60,13 @@ function buffer_plugin_admin(&$a, &$o){ '$client_secret' => array('client_secret', t('Client Secret'), get_config('buffer', 'client_secret' ), ''), )); } +function buffer_plugin_admin_post(&$a){ + $client_id = ((x($_POST,'client_id')) ? notags(trim($_POST['client_id'])) : ''); + $client_secret = ((x($_POST,'client_secret')) ? notags(trim($_POST['client_secret'])): ''); + set_config('buffer','client_id',$client_id); + set_config('buffer','client_secret',$client_secret); + info( t('Settings updated.'). EOL ); +} function buffer_connect(&$a) {