]> wagnertech.de Git - mfinanz.git/blobdiff - scripts/spawn_oo.pl
Aktualisierung mitgelieferte List::MoreUtils von 0.22 auf 0.25_02
[mfinanz.git] / scripts / spawn_oo.pl
index 387961e2e67dca2f9e5b9302d4a224c5acb10106..2e4b2ff8cc4c7a1d52a7cfc61c7262e26fe4a968 100755 (executable)
@@ -1,5 +1,11 @@
 #!/usr/bin/perl
 
+BEGIN {
+  unshift @INC, "modules/override"; # Use our own versions of various modules (e.g. YAML).
+  push    @INC, "modules/fallback"; # Only use our own versions of modules if there's no system version.
+}
+
+
 use DBI;
 use Data::Dumper;
 
@@ -8,9 +14,6 @@ use SL::LXDebug;
 use SL::Form;
 use SL::Template;
 
-$userspath  = "users";
-$templates  = "templates";
-$memberfile = "users/members";
 $sendmail   = "| /usr/sbin/sendmail -t";
 
 $| = 1;
@@ -21,12 +24,10 @@ require "lx-erp.conf";
 
 $form = new Form;
 $form->{"script"} = "oe.pl";
-$form->{"path"} = "bin/mozilla";
-
 
 $ENV{'HOME'} = getcwd() . "/$userspath";
 
-my $template = OpenDocumentTemplate->new("", $form, \%myconfig, $userspath);
+my $template = SL::Template::create(type => 'OpenDocument', file_name => '', form => $form, myconfig => \%myconfig, userspath => $userspath);
 
 if (@ARGV && ($ARGV[0] eq "-r")) {
   system("ps auxww | " .