From c2dda5abbae0ef821d2d8c93e2cf90972279f1f8 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 3 Jan 2006 15:41:30 +0000 Subject: don't have a useless empty hash in wizards objects, use the wizards hash --- perl-install/standalone/drakgw | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'perl-install/standalone/drakgw') diff --git a/perl-install/standalone/drakgw b/perl-install/standalone/drakgw index 2eda7db6d..78f0b1c37 100755 --- a/perl-install/standalone/drakgw +++ b/perl-install/standalone/drakgw @@ -68,8 +68,8 @@ my $resolv_conf = network::network::read_resolv_conf_raw(); my $squid_conf = network::squid::read_squid_conf(); my $dhcpd_conf = network::dhcpd::read_dhcpd_conf(); -my $wiz; -$wiz = +require wizards; +my $wiz = wizards->new( { defaultimage => "drakgw.png", name => N("Internet Connection Sharing"), @@ -332,9 +332,8 @@ You may now share Internet connection with other computers on your Local Area Ne end => 1, }, }, -}; -require wizards; -wizards->new->safe_process($wiz, $in); +}); +$wiz->safe_process($in); -- cgit v1.2.1