Refresh modules after changing

This commit is contained in:
Jamie Cameron
2018-10-10 19:13:10 +00:00
parent dc1160a07b
commit 55ceda8b10
2 changed files with 6 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ use strict;
use warnings;
require './acl-lib.pl';
our (%in, %text, %config, %access, $base_remote_user);
&ReadParse();
&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);
# Fetch user and group lists, if possible
@@ -219,6 +220,10 @@ if (@icons) {
&icons_table(\@links, \@titles, \@icons);
}
if ($in{'refresh'} && defined(&theme_post_change_modules)) {
&theme_post_change_modules();
}
&ui_print_footer("/", $text{'index'});
# show_modules(type, who, &mods, show-global, prefix)

View File

@@ -381,5 +381,5 @@ else {
&webmin_log("create", "user", $user{'name'}, \%in);
}
&reload_miniserv();
&redirect("");
&redirect("index.cgi?refresh=1");