mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:10:10 +00:00
Change saving active panel from js localStorage to via html #anker
This commit is contained in:
parent
62f09fdd57
commit
36aca259d5
2 changed files with 12 additions and 7 deletions
|
@ -1163,6 +1163,7 @@ function admin_page_site_post(App $a)
|
|||
$relay_scope = ((x($_POST,'relay_scope')) ? Strings::escapeTags(trim($_POST['relay_scope'])) : '');
|
||||
$relay_server_tags = ((x($_POST,'relay_server_tags')) ? Strings::escapeTags(trim($_POST['relay_server_tags'])) : '');
|
||||
$relay_user_tags = ((x($_POST,'relay_user_tags')) ? True : False);
|
||||
$active_panel = (defaults($_POST, 'active_panel', '') ? "#" . Strings::escapeTags(trim($_POST['active_panel'])) : '');
|
||||
|
||||
// Has the directory url changed? If yes, then resubmit the existing profiles there
|
||||
if ($global_directory != Config::get('system', 'directory') && ($global_directory != '')) {
|
||||
|
@ -1344,7 +1345,8 @@ function admin_page_site_post(App $a)
|
|||
Config::set('system', 'rino_encrypt', $rino);
|
||||
|
||||
info(L10n::t('Site settings updated.') . EOL);
|
||||
$a->internalRedirect('admin/site');
|
||||
|
||||
$a->internalRedirect('admin/site' . $active_panel);
|
||||
return; // NOTREACHED
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue