X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b179b8df8426376f1592c7fdc3e693ed564c2fc3..8cd05ad64866ce200f888a35723ae4b7e24a2012:/scripts/spawn_oo.pl diff --git a/scripts/spawn_oo.pl b/scripts/spawn_oo.pl index 058de3474..2e4b2ff8c 100755 --- a/scripts/spawn_oo.pl +++ b/scripts/spawn_oo.pl @@ -5,6 +5,7 @@ BEGIN { push @INC, "modules/fallback"; # Only use our own versions of modules if there's no system version. } + use DBI; use Data::Dumper; @@ -13,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; @@ -29,7 +27,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 | " .