Use new module in top-level CGIs
authorJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 07:49:06 +0000 (07:49 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 07:49:06 +0000 (07:49 +0000)
config.cgi

index 635d13b..2ac1e36 100755 (executable)
@@ -2,9 +2,9 @@
 # config.cgi
 # Display a form for editing the configuration of a module.
 
-require './web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 require './config-lib.pl';
-require './ui-lib.pl';
 &init_config();
 $m = $in{'module'} || $ARGV[0];
 &foreign_available($m) || &error($text{'config_eaccess'});