Kompatibilität mit älteren lx-erp.confs: Wenn $latex (alt) definiert ist, $latex_temp...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 29 Dec 2006 09:41:36 +0000 (09:41 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 29 Dec 2006 09:41:36 +0000 (09:41 +0000)
am.pl

diff --git a/am.pl b/am.pl
index a9b0532..df71c21 100755 (executable)
--- a/am.pl
+++ b/am.pl
@@ -46,6 +46,11 @@ use SL::Form;
 
 eval { require "lx-erp.conf"; };
 
+if (defined($latex) && !defined($latex_templates)) {
+  $latex_templates = $latex;
+  undef($latex);
+}
+
 $form = new Form;
 
 # name of this script