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

index ca57830..9c6f57e 100644 (file)
@@ -1,10 +1,10 @@
 # custom-lib.pl
 # Functions for storing custom commands
 
-do '../web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
 %access = &get_module_acl();
-do '../ui-lib.pl';
 
 # list_commands()
 # Returns a list of all custom commands