Eine Funktion zum "sicheren" Aufrufen von Unterfunktionen eingebaut, damit &{ $form...
[kivitendo-erp.git] / am.pl
diff --git a/am.pl b/am.pl
index d5124e8..98d990c 100755 (executable)
--- a/am.pl
+++ b/am.pl
@@ -52,6 +52,8 @@ use SL::Locale;
 
 eval { require "lx-erp.conf"; };
 
+require "bin/mozilla/common.pl";
+
 if (defined($latex) && !defined($latex_templates)) {
   $latex_templates = $latex;
   undef($latex);
@@ -129,7 +131,7 @@ if ($form->{action}) {
     . $locale->text('Version')
     . " $form->{version} - $myconfig{name} - $myconfig{dbname}";
 
-  &{ $locale->findsub($form->{action}) };
+  call_sub($locale->findsub($form->{action}));
 } else {
   $form->error($locale->text('action= not defined!'));
 }