mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-29 07:53:16 +00:00
c&p typo and checking for a trailing / in admin panel
This commit is contained in:
parent
60219ede31
commit
aa0db37fea
1 changed files with 3 additions and 1 deletions
|
@ -727,6 +727,8 @@ function statusnet_plugin_admin_post(&$a){
|
||||||
foreach($_POST['sitename'] as $id=>$sitename){
|
foreach($_POST['sitename'] as $id=>$sitename){
|
||||||
$sitename=trim($sitename);
|
$sitename=trim($sitename);
|
||||||
$apiurl=trim($_POST['apiurl'][$id]);
|
$apiurl=trim($_POST['apiurl'][$id]);
|
||||||
|
if (! (substr($apiurl, -1)=='/'))
|
||||||
|
$apiurl=$apiurl.'/';
|
||||||
$secret=trim($_POST['secret'][$id]);
|
$secret=trim($_POST['secret'][$id]);
|
||||||
$key=trim($_POST['key'][$id]);
|
$key=trim($_POST['key'][$id]);
|
||||||
$applicationname = ((x($_POST, 'applicationname')) ? notags(trim($_POST['applicationname'][$id])):'');
|
$applicationname = ((x($_POST, 'applicationname')) ? notags(trim($_POST['applicationname'][$id])):'');
|
||||||
|
@ -770,7 +772,7 @@ function statusnet_plugin_admin(&$a, &$o){
|
||||||
$id++;
|
$id++;
|
||||||
$sitesform[] = Array(
|
$sitesform[] = Array(
|
||||||
'sitename' => Array("sitename[$id]", t("Site name"), "", ""),
|
'sitename' => Array("sitename[$id]", t("Site name"), "", ""),
|
||||||
'apiurl' => Array("apiurl[$id]", "Api url", $s['apiurl'], t("Base API Path \x28remember the trailing /\x29") ),
|
'apiurl' => Array("apiurl[$id]", "Api url", "", t("Base API Path \x28remember the trailing /\x29") ),
|
||||||
'secret' => Array("secret[$id]", t("Consumer Secret"), "", ""),
|
'secret' => Array("secret[$id]", t("Consumer Secret"), "", ""),
|
||||||
'key' => Array("key[$id]", t("Consumer Key"), "", ""),
|
'key' => Array("key[$id]", t("Consumer Key"), "", ""),
|
||||||
'applicationname' => Array("applicationname[$id]", t("Application name"), "", ""),
|
'applicationname' => Array("applicationname[$id]", t("Application name"), "", ""),
|
||||||
|
|
Loading…
Reference in a new issue