]> wagnertech.de Git - mfinanz.git/blobdiff - am.pl
Falsche Funktionsaufrufe. Fix für Bugzilla ID 560.
[mfinanz.git] / am.pl
diff --git a/am.pl b/am.pl
index a9b05323293811aeefcd1b416f9d7a9f6b875622..7e111f368997c51b276034e045a8e59e4a5d85d7 100755 (executable)
--- a/am.pl
+++ b/am.pl
@@ -42,11 +42,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/\\/\//;