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

index 0b3fd58..2865acd 100644 (file)
@@ -1,9 +1,9 @@
 # heartbeat-lib.pl
 # Common functions for heartbeat tool configuration
 
-do '../web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
-do '../ui-lib.pl';
 
 $ha_cf = $config{'ha_cf'} ? $config{'ha_cf'} : "$config{'ha_dir'}/ha.cf";
 $haresources = $config{'haresources'} ? $config{'haresources'}