Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2e66dde5

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID 2e66dde525c12d064518c316d25a6b41ed727b39
  • Vorgänger 05b30be4
  • Nachfolger cd417762

'templates' nicht aus %::myconfig, sondern aus Defaults-Tabelle holen

Unterschiede anzeigen:

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