From: Sven Schöling Date: Wed, 21 Oct 2009 14:42:17 +0000 (+0200) Subject: generic translations strict X-Git-Tag: release-2.6.1beta1~205 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=429203bfb57dd673aa807d749ab43c8e3332f8c8;p=kivitendo-erp.git generic translations strict --- diff --git a/bin/mozilla/generictranslations.pl b/bin/mozilla/generictranslations.pl index 608611710..385ce8094 100644 --- a/bin/mozilla/generictranslations.pl +++ b/bin/mozilla/generictranslations.pl @@ -2,10 +2,15 @@ use SL::Auth; use SL::Form; use SL::GenericTranslations; +use strict; + sub edit_greetings { - $lxdebug->enter_sub(); + $main::lxdebug->enter_sub(); + + $main::auth->assert('config'); - $auth->assert('config'); + my $form = $main::form; + my $locale = $main::locale; $form->get_lists('languages' => 'LANGUAGES'); @@ -33,13 +38,16 @@ sub edit_greetings { $form->header(); print $form->parse_html_template('generictranslations/edit_greetings'); - $lxdebug->leave_sub(); + $main::lxdebug->leave_sub(); } sub save_greetings { - $lxdebug->enter_sub(); + $main::lxdebug->enter_sub(); + + $main::auth->assert('config'); - $auth->assert('config'); + my $form = $main::form; + my $locale = $main::locale; $form->get_lists('languages' => 'LANGUAGES'); @@ -60,7 +68,7 @@ sub save_greetings { edit_greetings(); - $lxdebug->leave_sub(); + $main::lxdebug->leave_sub(); } 1;