From b1f4ffba9c57ef34467c7cc08240f3d150471be9 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 1 Mar 2009 07:49:39 +0000 Subject: [PATCH] Use new module in top-level CGIs --- index.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.cgi b/index.cgi index 05f647b08..7fd4e5f22 100755 --- a/index.cgi +++ b/index.cgi @@ -1,7 +1,9 @@ #!/usr/local/bin/perl # Display all Webmin modules visible to the current user -require './web-lib.pl'; +BEGIN { push(@INC, ".."); }; +use WebminCore; + &init_config(); $hostname = &get_display_hostname(); $ver = &get_webmin_version();