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

index d4974af..3da6a80 100644 (file)
@@ -1,8 +1,8 @@
 # Functions for reading and writing sarg.conf
 
-do '../web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
-do '../ui-lib.pl';
 
 $cron_cmd = "$module_config_directory/generate.pl";
 %needs_quotes = map { $_, 1 } ("title", "logo_text", "user_invalid_char",