]> wagnertech.de Git - mfinanz.git/blobdiff - scripts/spawn_oo.pl
CSV-Export mit UTF-8 als Encoding gefixt
[mfinanz.git] / scripts / spawn_oo.pl
index 9e2f80739d989aacda1268df9f134af6c875fee4..26991f109cb137652d6a1cc2a1c0f86822a1f9e0 100755 (executable)
@@ -1,7 +1,8 @@
 #!/usr/bin/perl
 
 BEGIN {
-  push(@INC, "modules");
+  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;
@@ -28,7 +29,7 @@ $form->{"script"} = "oe.pl";
 
 $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 | " .