Use new module
authorJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 22:29:17 +0000 (22:29 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 22:29:17 +0000 (22:29 +0000)
webalizer/webalizer-lib.pl

index c7ac3d2..906b281 100644 (file)
@@ -1,9 +1,9 @@
 # webalizer-lib.pl
 # Common functions for editing the webalizer config file
 
-do '../web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
-do '../ui-lib.pl';
 
 $cron_cmd = "$module_config_directory/webalizer.pl";
 $custom_logs_file = "$module_config_directory/custom-logs";