Use new module
authorJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 21:34:35 +0000 (21:34 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 21:34:35 +0000 (21:34 +0000)
spam/spam-lib.pl

index 4e56fff..695297e 100644 (file)
@@ -1,10 +1,10 @@
 # spam-lib.pl
 # Common functions for parsing and editing the spamassassin config file
 
-do '../web-lib.pl';
-&init_config();
-do '../ui-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 use Fcntl;
+&init_config();
 
 $warn_procmail = $config{'warn_procmail'};
 if ($module_info{'usermin'}) {