From: Moritz Bunkus Date: Wed, 7 Nov 2007 09:00:29 +0000 (+0000) Subject: Die globale Variable $sendmail wird nur in SL/Mailer.pm benötigt und sollte deswegen... X-Git-Tag: release-2.6.0beta1~422 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e6e07cb0bb7029db6fdfaa43e8756afd397cfe73;p=kivitendo-erp.git Die globale Variable $sendmail wird nur in SL/Mailer.pm benötigt und sollte deswegen auch nur dort benutzt werden. --- diff --git a/SL/DN.pm b/SL/DN.pm index 125e33ca1..2b6cd63fd 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -266,7 +266,7 @@ sub create_invoice_for_fees { sub save_dunning { $main::lxdebug->enter_sub(); - my ($self, $myconfig, $form, $rows, $userspath, $spool, $sendmail) = @_; + my ($self, $myconfig, $form, $rows, $userspath, $spool) = @_; # connect to database my $dbh = $form->dbconnect_noauto($myconfig); diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index e530050ad..c3e7966c3 100644 --- a/bin/mozilla/dn.pl +++ b/bin/mozilla/dn.pl @@ -191,7 +191,7 @@ sub save_dunning { foreach my $level (values %{ $levels }) { next unless scalar @{ $level }; - DN->save_dunning(\%myconfig, $form, $level, $userspath, $spool, $sendmail); + DN->save_dunning(\%myconfig, $form, $level, $userspath, $spool); } } @@ -204,7 +204,7 @@ sub save_dunning { "customer_id" => $form->{"customer_id_$i"}, "next_dunning_config_id" => $form->{"next_dunning_config_id_$i"}, "email" => $form->{"email_$i"}, } ]; - DN->save_dunning(\%myconfig, $form, $level, $userspath, $spool, $sendmail); + DN->save_dunning(\%myconfig, $form, $level, $userspath, $spool); } } diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index 1a2999bde..446128633 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -1656,9 +1656,7 @@ sub print_form { } $form->{IN} = "$form->{type}.$suffix"; - $form->{OUT} = - $form->{media} eq 'email' ? $sendmail : - $form->{media} eq 'printer' ? "| $myconfig{printer}" : ""; + $form->{OUT} = $form->{media} eq 'printer' ? "| $myconfig{printer}" : ""; # Save $form->{email} because it will be overwritten. $form->{EMAIL_RECIPIENT} = $form->{email};