user selects preconfigured SN, put app name in pconfig
This commit is contained in:
parent
78f850215a
commit
61bbedcc0f
|
@ -176,6 +176,7 @@ function statusnet_settings_post ($a,$post) {
|
||||||
set_pconfig(local_user(), 'statusnet', 'consumerkey', $asn['consumerkey'] );
|
set_pconfig(local_user(), 'statusnet', 'consumerkey', $asn['consumerkey'] );
|
||||||
set_pconfig(local_user(), 'statusnet', 'consumersecret', $asn['consumersecret'] );
|
set_pconfig(local_user(), 'statusnet', 'consumersecret', $asn['consumersecret'] );
|
||||||
set_pconfig(local_user(), 'statusnet', 'baseapi', $asn['apiurl'] );
|
set_pconfig(local_user(), 'statusnet', 'baseapi', $asn['apiurl'] );
|
||||||
|
set_pconfig(local_user(), 'statusnet', 'application_name', $asn['applicationname'] );
|
||||||
} else {
|
} else {
|
||||||
notice( t('Please contact your site administrator.<br />The provided API URL is not valid.').EOL.$asn['apiurl'].EOL );
|
notice( t('Please contact your site administrator.<br />The provided API URL is not valid.').EOL.$asn['apiurl'].EOL );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user