mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
add openstreetmap
This commit is contained in:
parent
41d1eb796c
commit
bb5588b5eb
4 changed files with 54 additions and 2 deletions
|
@ -136,7 +136,8 @@ function randplace_post_hook($a, &$item) {
|
|||
function randplace_settings_post($a,$post) {
|
||||
if(! local_user())
|
||||
return;
|
||||
set_pconfig(local_user(),'randplace','enable',intval($_POST['randplace']));
|
||||
if($_POST['randplace-submit'])
|
||||
set_pconfig(local_user(),'randplace','enable',intval($_POST['randplace']));
|
||||
}
|
||||
|
||||
|
||||
|
@ -175,6 +176,6 @@ function randplace_settings(&$a,&$s) {
|
|||
|
||||
/* provide a submit button */
|
||||
|
||||
$s .= '<div class="settings-submit-wrapper" ><input type="submit" name="submit" class="settings-submit" value="' . t('Submit') . '" /></div></div>';
|
||||
$s .= '<div class="settings-submit-wrapper" ><input type="submit" name="randplace-submit" class="settings-submit" value="' . t('Submit') . '" /></div></div>';
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue