From dd809f14a41a341a0d5859b303b7b4e8559fdab4 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 1 Mar 2009 22:52:34 +0000 Subject: [PATCH] Use new module --- caldera/index.cgi | 3 ++- caldera/index_body.cgi | 3 ++- caldera/index_top.cgi | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/caldera/index.cgi b/caldera/index.cgi index 92c8daec0..a997ec8b7 100755 --- a/caldera/index.cgi +++ b/caldera/index.cgi @@ -3,7 +3,8 @@ # Webmin index page for Caldera's theme. Contains two frames, with the # categories and modules always at the top and the CGIs at the bottom -require './web-lib.pl'; +BEGIN { push(@INC, ".."); }; +use WebminCore; &init_config(); $hostname = &get_display_hostname(); $ver = &get_webmin_version(); diff --git a/caldera/index_body.cgi b/caldera/index_body.cgi index 05381111e..3267a3359 100755 --- a/caldera/index_body.cgi +++ b/caldera/index_body.cgi @@ -2,7 +2,8 @@ # index_body.cgi # Display an empty page -require './web-lib.pl'; +BEGIN { push(@INC, ".."); }; +use WebminCore; &init_config(); &header(); diff --git a/caldera/index_top.cgi b/caldera/index_top.cgi index fa91361d1..b1de1c5ac 100755 --- a/caldera/index_top.cgi +++ b/caldera/index_top.cgi @@ -2,7 +2,8 @@ # index_top.cgi # Display the top frame using the Caldera icons and style -require './web-lib.pl'; +BEGIN { push(@INC, ".."); }; +use WebminCore; &init_config(); $hostname = &get_display_hostname(); $ver = &get_webmin_version();