mirror of
https://github.com/webmin/webmin.git
synced 2026-06-19 10:50:21 +01:00
Use new module
This commit is contained in:
@@ -132,7 +132,8 @@ else {
|
||||
# MTU
|
||||
if (&can_edit("mtu", $b) && $access{'mtu'}) {
|
||||
$mtufield = &ui_opt_textbox(
|
||||
"mtu", $b ? $b->{'mtu'} : $config{'def_mtu'}, 8);
|
||||
"mtu", $b ? $b->{'mtu'} : $config{'def_mtu'}, 8,
|
||||
$text{'default'});
|
||||
}
|
||||
else {
|
||||
$mtufield = $b && $b->{'mtu'} ? $b->{'mtu'} : undef;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# net-lib.pl
|
||||
# Common local networking functions
|
||||
|
||||
do '../web-lib.pl';
|
||||
BEGIN { push(@INC, ".."); };
|
||||
use WebminCore;
|
||||
&init_config();
|
||||
do '../ui-lib.pl';
|
||||
%access = &get_module_acl();
|
||||
$access{'ipnodes'} = $access{'hosts'};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user