Use new module

This commit is contained in:
Jamie Cameron
2009-03-01 20:43:38 +00:00
parent 144e42db33
commit be040d91a8
2 changed files with 4 additions and 3 deletions

View File

@@ -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;

View File

@@ -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'};