X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Fspawn_oo.pl;h=d0e8f789cda8340c0d8a6880b6faa8f63af6df87;hb=15b1558e299f3143ec8d89293674f9bab6ad61ed;hp=058de34747b1f61c67cfafee10bf87be2221dd62;hpb=b179b8df8426376f1592c7fdc3e693ed564c2fc3;p=kivitendo-erp.git diff --git a/scripts/spawn_oo.pl b/scripts/spawn_oo.pl index 058de3474..d0e8f789c 100755 --- a/scripts/spawn_oo.pl +++ b/scripts/spawn_oo.pl @@ -13,23 +13,18 @@ use SL::LXDebug; use SL::Form; use SL::Template; -$userspath = "users"; -$templates = "templates"; -$memberfile = "users/members"; $sendmail = "| /usr/sbin/sendmail -t"; $| = 1; $lxdebug = LXDebug->new(); -require "lx-erp.conf"; - $form = new Form; $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 | " .