Domain Settings: Add Reload button.

This commit is contained in:
Nate
2019-12-11 16:40:38 -07:00
parent aaca2bb47c
commit 9961ebb148
2 changed files with 12 additions and 2 deletions
@@ -39,6 +39,7 @@ else {
$text = $language->get();
$search = $_REQUEST['search'];
$domain_uuid = $_GET['id'];
require "resources/classes/domains.php";
$domain = new domains();
@@ -46,6 +47,12 @@ $domain->db = $db;
$domain->set();
message::add($text['message-settings_reloaded']);
header("Location: default_settings.php".($search != '' ? "?search=".$search : null));
if (is_uuid($domain_uuid)) {
$location = PROJECT_PATH.'/core/domains/domain_edit.php?id='.$domain_uuid;
}
else {
$location = 'default_settings.php'.($search != '' ? "?search=".$search : null);
}
header("Location: ".$location);
?>