From: Sven Schöling Date: Tue, 1 Feb 2011 14:14:21 +0000 (+0100) Subject: oe.pl::dispatcher - unnötige Lokalisierungen von Globals entfernt. X-Git-Tag: release-2.6.2~12 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c0f1c3eec56473b63fe132bea71b5cf3b2943065;p=kivitendo-erp.git oe.pl::dispatcher - unnötige Lokalisierungen von Globals entfernt. --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 0e469d8d3..8398006ec 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1941,16 +1941,13 @@ sub report_for_todo_list { } sub dispatcher { - my $form = $main::form; - my $locale = $main::locale; - foreach my $action (qw(delete delivery_order e_mail invoice print purchase_order purchase_order quotation request_for_quotation sales_order sales_order save save_and_close save_as_new ship_to update)) { - if ($form->{"action_${action}"}) { + if ($::form->{"action_${action}"}) { call_sub($action); return; } } - $form->error($locale->text('No action defined.')); + $::form->error($::locale->text('No action defined.')); }