mirror of
https://github.com/webmin/webmin.git
synced 2026-06-20 11:20:30 +01:00
Refresh modules after changing
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -381,5 +381,5 @@ else {
|
||||
&webmin_log("create", "user", $user{'name'}, \%in);
|
||||
}
|
||||
&reload_miniserv();
|
||||
&redirect("");
|
||||
&redirect("index.cgi?refresh=1");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user