mirror of
https://github.com/webmin/webmin.git
synced 2026-06-20 19:30:30 +01:00
Add Usermin option if config files should be sorted on save
This commit is contained in:
@@ -39,6 +39,11 @@ else {
|
||||
$uconfig{'umask'} = $in{'umask'};
|
||||
}
|
||||
|
||||
# Sort config file's keys alphabetically
|
||||
if (defined($in{'sortconfigs'})) {
|
||||
$uconfig{'sortconfigs'} = $in{'sortconfigs'};
|
||||
}
|
||||
|
||||
&lock_file($usermin_config);
|
||||
&write_file($usermin_config, \%uconfig);
|
||||
&unlock_file($usermin_config);
|
||||
|
||||
@@ -57,6 +57,10 @@ elsif ($preloads[0]->[0] eq "main" && $preloads[0]->[1] eq "web-lib-funcs.pl") {
|
||||
print &ui_table_row($text{'advanced_umask'},
|
||||
&ui_opt_textbox("umask", $uconfig{'umask'}, 5, $text{'default'}));
|
||||
|
||||
# Sort config file's keys alphabetically
|
||||
print &ui_table_row($text{'advanced_sortconfigs'},
|
||||
&ui_yesno_radio("sortconfigs", $uconfig{'sortconfigs'}));
|
||||
|
||||
print &ui_table_end();
|
||||
print &ui_form_end([ [ "save", $text{'save'} ] ]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user