Changeset 705 for LATMOS-Accounts/lib


Ignore:
Timestamp:
01/22/10 20:39:56 (14 years ago)
Author:
nanardon
Message:
  • set install mail template on standard location, look for template in this directory
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/lib/LATMOS/Accounts/Maintenance.pm

    r704 r705  
    6666    require Template; 
    6767    my $template = Template->new( 
    68         INCLUDE_PATH => ($self->val('_default_', 'templatespath') 
    69             || "$FindBin::Bin/../templates") . '/mail', 
     68        INCLUDE_PATH => [ 
     69            ($self->val('_default_', 'templatespath') 
     70               ? $self->val('_default_', 'templatespath') . '/mail' 
     71               : ()), 
     72            "$FindBin::Bin/../templates" . '/mail', 
     73            '/usr/share/latmos-accounts/templates/mail', 
     74        ], 
    7075        POST_CHOMP   => 1, 
    7176        EXTENSION    => '.mail', 
     
    106111            Message => $message, 
    107112        )) { 
    108             printf("Mail normally set to %s; cc to %s\n", 
     113            printf("Mail normally sent to %s; cc to %s\n", 
    109114                $to, (join(', ', @cc) || '')); 
    110115        } else { 
Note: See TracChangeset for help on using the changeset viewer.