oe.pl::dispatcher - unnötige Lokalisierungen von Globals entfernt.
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 1 Feb 2011 14:14:21 +0000 (15:14 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 1 Feb 2011 14:14:21 +0000 (15:14 +0100)
bin/mozilla/oe.pl

index 0e469d8..8398006 100644 (file)
@@ -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.'));
 }