]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/licenses.pl
Methoden zum Speichern von eindeutigen Keys in der Session
[mfinanz.git] / bin / mozilla / licenses.pl
index 49022059f6c7e188cc57cf280be197b2077e1441..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.')
     );
   }