Merge branch 'master' of git@lx-office.linet-services.de:lx-office-erp
[kivitendo-erp.git] / bin / mozilla / licenses.pl
index 6fe4f76..fb065f2 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(