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

index 7d202bd..022868f 100755 (executable)
@@ -1,9 +1,9 @@
 # mon-lib.pl
 # Common functions for mon 
 
-do '../web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
-do '../ui-lib.pl';
 
 $mon_config_file = "$config{'cfbasedir'}/mon.cf";
 $under = { '' => [ 'authtype', 'hostgroup', 'watch', 'use', 'period',