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

index cd03c06..66060e6 100755 (executable)
@@ -1,8 +1,10 @@
 #!/usr/local/bin/perl
 # This CGI generates the HTML for choosing a module or list of modules
 
+BEGIN { push(@INC, ".."); };
+use WebminCore;
+
 $trust_unknown_referers = 1;
-require './web-lib.pl';
 &init_config();
 &ReadParse(undef, undef, 2);
 %access = &get_module_acl();