X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Flicenses.pl;h=fb065f2549b46678fc34c6e6b35729bf8fcbee47;hb=b3caa17585a69e0c5092483f709dd1227b9acaaf;hp=6fe4f764eb99d1bb62d2630e8ff5ba6b4dd67141;hpb=134120bca7ac33d80c09afb5cabe25a1c1a73e8f;p=kivitendo-erp.git diff --git a/bin/mozilla/licenses.pl b/bin/mozilla/licenses.pl index 6fe4f764e..fb065f254 100644 --- a/bin/mozilla/licenses.pl +++ b/bin/mozilla/licenses.pl @@ -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||); - exit(0); + ::end_of_request(); } print(