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

index d196ab7..cd240c1 100644 (file)
@@ -1,9 +1,10 @@
 #!/usr/local/bin/perl
 # Search Webmin modules and help pages and text and config.info
 
-do './web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
+
 &init_config();
-do './ui-lib.pl';
 &ReadParse();
 
 $prod = &get_product_name();