X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Finstallationcheck.pl;h=4741443df4866e22f219360c84c5ad5c7226b80c;hb=4bc7f0aadc85b49bd5bd57412f6de081eb733016;hp=71f3c01c83abdbb4fed7774f209312aa8bca6def;hpb=8c7e44938a661e035f62840e1e177353240ace5d;p=kivitendo-erp.git diff --git a/bin/mozilla/installationcheck.pl b/bin/mozilla/installationcheck.pl index 71f3c01c8..4741443df 100644 --- a/bin/mozilla/installationcheck.pl +++ b/bin/mozilla/installationcheck.pl @@ -1,10 +1,14 @@ use SL::InstallationCheck; +use strict; + sub verify_installation { my $script = $0; $script =~ s|.*/||; - return unless ($form{"action"} && ($script eq "login.pl")); + my $form = $main::form; + + return unless ($form->{"action"} && ($script eq "login.pl")); SL::InstallationCheck::check_for_conditional_dependencies(); @@ -12,7 +16,8 @@ sub verify_installation { return if (scalar(@missing_modules) == 0); use SL::Locale; - my $locale = new Locale($language, "installationcheck"); + + my $locale = new Locale($::lx_office_conf{system}->{language}, "installationcheck"); print(qq|content-type: text/html @@ -71,7 +76,7 @@ sub verify_installation { " " . $locale->text("Here's an example command line:") . qq|

-

perl -MCPAN -e "install CGI::Ajax"

+

perl -MCPAN -e "install Config::Std"

| . $locale->text("The third way is to download the module from the " . "above mentioned URL and to install the module " . @@ -81,7 +86,8 @@ sub verify_installation { |); - exit(0); + + ::end_of_request(); } 1;