Use new module
authorJamie Cameron <jcameron@webmin.com>
Tue, 3 Mar 2009 21:30:54 +0000 (21:30 +0000)
committerJamie Cameron <jcameron@webmin.com>
Tue, 3 Mar 2009 21:30:54 +0000 (21:30 +0000)
ipsec/ipsec-lib.pl

index 2d7870f..c42e8df 100644 (file)
@@ -4,9 +4,9 @@
 # XXX option to download connection as .conf file, and upload an existing
 #     .conf file for addition
 
-do '../web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
-do '../ui-lib.pl';
 
 # get_config([file])
 # Returns an array of configured connections