mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix to factor out a function with different logic
This commit is contained in:
@@ -1626,10 +1626,16 @@ sub go
|
||||
}
|
||||
my $file = $mpath . "/$code";
|
||||
my $file_auto = $mpath . "/$code.$language_suffix";
|
||||
write_file($file, \%language, undef, undef, $mfile, 1), chmod(0664, $file)
|
||||
if (%language);
|
||||
write_file($file_auto, \%language_auto, undef, undef, $mfile, 1), chmod(0664, $file_auto)
|
||||
if ((%language_auto || !%language_auto) && !$opt->{'only-transcode'});
|
||||
if (%language) {
|
||||
write_file($file, \%language);
|
||||
sort_file_by($file, $mfile);
|
||||
chmod(0664, $file);
|
||||
}
|
||||
if ((%language_auto || !%language_auto) && !$opt->{'only-transcode'}) {
|
||||
write_file($file_auto, \%language_auto);
|
||||
sort_file_by($file_auto, $mfile);
|
||||
chmod(0664, $file_auto);
|
||||
}
|
||||
|
||||
# Remove empty files
|
||||
unlink($file) if (-z $file);
|
||||
|
||||
Reference in New Issue
Block a user