]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/licenses.pl
Fehlende Übersetzung
[mfinanz.git] / bin / mozilla / licenses.pl
index 6fe4f764eb99d1bb62d2630e8ff5ba6b4dd67141..fb065f2549b46678fc34c6e6b35729bf8fcbee47 100644 (file)
@@ -323,10 +323,12 @@ sub add {
   my $form     = $main::form;
   my $locale   = $main::locale;
 
-  if (!$main::lizenzen) {
+  $form->{title} = $locale->text('Add License');
+
+  if (!$::lx_office_conf{features}->{lizenzen}) {
     $form->error(
                  $locale->text(
-                   'The licensing module has been deactivated in lx-erp.conf.')
+                   'The licensing module has been deactivated in the configuration.')
     );
   }
 
@@ -514,10 +516,12 @@ sub search {
   my $form     = $main::form;
   my $locale   = $main::locale;
 
-  if (!$main::lizenzen) {
+  $form->{title} = $locale->text('Licenses');
+
+  if (!$::lx_office_conf{features}->{lizenzen}) {
     $form->error(
                  $locale->text(
-                   'The licensing module has been deactivated in lx-erp.conf.')
+                   'The licensing module has been deactivated in the configuration.')
     );
   }
 
@@ -611,7 +615,7 @@ sub do_search {
             . $locale->text(
                       "No licenses were found that match the search criteria.")
             . qq|</body></html>|);
-    exit(0);
+    ::end_of_request();
   }
 
   print(