X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=am.pl;h=d5124e8d06c8d877d799eb25056484294fc8a7ca;hb=1387c8c3ae668f43cafc8b81f51f7952b42db262;hp=a9b05323293811aeefcd1b416f9d7a9f6b875622;hpb=d319704a66e9be64da837ccea10af6774c2b0838;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/\\/\//;