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

index 7c40175..c78fe3b 100644 (file)
@@ -1,9 +1,9 @@
 # cfengine-lib.pl
 # Functions for parsing the cfengine config file
 
-do '../web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
-do '../ui-lib.pl';
 
 @known_sections = ( 'groups', 'control', 'homeservers', 'binservers',
                    'mailserver', 'mountables', 'broadcast', 'resolve',