X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=am.pl;h=d5124e8d06c8d877d799eb25056484294fc8a7ca;hb=272ff5b05b65ceea4d33a122a7d87464fc119475;hp=a9b05323293811aeefcd1b416f9d7a9f6b875622;hpb=ee072e4f077213bf6f8792ca8f0a1afebbb6282f;p=kivitendo-erp.git diff --git a/am.pl b/am.pl index a9b053232..d5124e8d0 100755 --- a/am.pl +++ b/am.pl @@ -30,6 +30,10 @@ # ####################################################################### +BEGIN { + push(@INC, "modules"); +} + # setup defaults, DO NOT CHANGE $userspath = "users"; $templates = "templates"; @@ -42,11 +46,19 @@ $| = 1; use SL::LXDebug; $lxdebug = LXDebug->new(); +use CGI; use SL::Form; +use SL::Locale; eval { require "lx-erp.conf"; }; +if (defined($latex) && !defined($latex_templates)) { + $latex_templates = $latex; + undef($latex); +} + $form = new Form; +$cgi = new CGI(''); # name of this script $0 =~ tr/\\/\//;