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

index 3586795..fc819a4 100644 (file)
@@ -1,9 +1,9 @@
 # nis-lib.pl
 # Common functions for NIS client and server management
 
-do '../web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
-do '../ui-lib.pl';
 if (-r "$module_root_directory/$gconfig{'os_type'}-$gconfig{'os_version'}-lib.pl") {
        do "$gconfig{'os_type'}-$gconfig{'os_version'}-lib.pl";
        }