fix admin redirection
This commit is contained in:
parent
a7236e5d64
commit
f748aec127
1 changed files with 10 additions and 5 deletions
15
index.php
15
index.php
|
@ -63,8 +63,11 @@ try {
|
||||||
dcPage::addSuccessNotice(
|
dcPage::addSuccessNotice(
|
||||||
__('Filter successfully updated.')
|
__('Filter successfully updated.')
|
||||||
);
|
);
|
||||||
http::redirect(
|
|
||||||
$p_url . 'part=' . $default_part . '#setting'
|
$core->adminurl->redirect(
|
||||||
|
'admin.plugin.enhancePostContent',
|
||||||
|
['part' => $default_part],
|
||||||
|
'#settings'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,8 +87,10 @@ try {
|
||||||
dcPage::addSuccessNotice(
|
dcPage::addSuccessNotice(
|
||||||
__('Filter successfully updated.')
|
__('Filter successfully updated.')
|
||||||
);
|
);
|
||||||
http::redirect(
|
$core->adminurl->redirect(
|
||||||
$p_url . '&part=' . $default_part . '#record'
|
'admin.plugin.enhancePostContent',
|
||||||
|
['part' => $default_part],
|
||||||
|
'#record'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,7 +120,7 @@ try {
|
||||||
|
|
||||||
$redir = !empty($_REQUEST['redir']) ?
|
$redir = !empty($_REQUEST['redir']) ?
|
||||||
$_REQUEST['redir'] :
|
$_REQUEST['redir'] :
|
||||||
$p_url . '&part=' . $default_part . '#record';
|
$core->adminurl->get('admin.plugin.enhancePostContent', ['part' => $default_part]) . '#record';
|
||||||
|
|
||||||
dcPage::addSuccessNotice(
|
dcPage::addSuccessNotice(
|
||||||
__('Filter successfully updated.')
|
__('Filter successfully updated.')
|
||||||
|
|
Loading…
Reference in a new issue