Revision 2e66dde5
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/BackgroundJob/CreatePeriodicInvoices.pm | ||
---|---|---|
8 | 8 |
use English qw(-no_match_vars); |
9 | 9 |
|
10 | 10 |
use SL::DB::AuthUser; |
11 |
use SL::DB::Default; |
|
11 | 12 |
use SL::DB::Order; |
12 | 13 |
use SL::DB::Invoice; |
13 | 14 |
use SL::DB::PeriodicInvoice; |
... | ... | |
202 | 203 |
return unless $template; |
203 | 204 |
|
204 | 205 |
my $email_template = $config{periodic_invoices}->{email_template}; |
205 |
my $filename = $email_template || ( ($user->get_config_value('templates') || "templates/webpages") . "/periodic_invoices_email.txt" );
|
|
206 |
my $filename = $email_template || ( (SL::DB::Default->get->templates || "templates/webpages") . "/periodic_invoices_email.txt" );
|
|
206 | 207 |
my %params = ( POSTED_INVOICES => $posted_invoices, |
207 | 208 |
PRINTED_INVOICES => $printed_invoices ); |
208 | 209 |
|
Auch abrufbar als: Unified diff
'templates' nicht aus %::myconfig, sondern aus Defaults-Tabelle holen