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

index 5a4c807..cb997b3 100644 (file)
@@ -2,9 +2,9 @@
 # Common functions for editing the samba config file
 # XXX privileges for groups with 'net' command
 
-do '../web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
-do '../ui-lib.pl';
 
 # Get the samba version
 if (open(VERSION, "$module_config_directory/version")) {