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();