Use new module
authorJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 03:05:53 +0000 (03:05 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 03:05:53 +0000 (03:05 +0000)
init/init-lib.pl

index ddb37b9..bf5179c 100755 (executable)
@@ -17,9 +17,9 @@ Example code :
 
 =cut
 
-do '../web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
-do '../ui-lib.pl';
 @action_buttons = ( 'start', 'restart', 'condrestart', 'reload', 'status',
                    'stop' );
 %access = &get_module_acl();