-function xmpp_plugin_admin_post(&$a){
- $bosh_proxy = ((x($_POST,'bosh_proxy')) ? trim($_POST['bosh_proxy']) : '');
- $central_userbase = ((x($_POST,'central_userbase')) ? intval($_POST['central_userbase']) : false);
- set_config('xmpp','bosh_proxy',$bosh_proxy);
- set_config('xmpp','central_userbase',$central_userbase);
- info( t('Settings updated.'). EOL );
+function xmpp_plugin_admin_post()
+{
+ $bosh_proxy = ((x($_POST, 'bosh_proxy')) ? trim($_POST['bosh_proxy']) : '');
+ $central_userbase = ((x($_POST, 'central_userbase')) ? intval($_POST['central_userbase']) : false);
+ Config::set('xmpp', 'bosh_proxy', $bosh_proxy);
+ Config::set('xmpp', 'central_userbase', $central_userbase);
+ info(t('Settings updated.') . EOL);