From: ivan Date: Tue, 30 Jan 2007 23:50:27 +0000 (+0000) Subject: fix agent-specific logos in emailed html invoices X-Git-Tag: freeside_1_7_2~1^2~69 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=811f2540b22045c137b4b8f2b5ff17bf6cbe957c;p=freeside.git fix agent-specific logos in emailed html invoices --- diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index d55eb438f..dc45dc32b 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -576,11 +576,11 @@ sub generate_email { my $path = "$FS::UID::conf_dir/conf.$FS::UID::datasrc"; my $file; - if ( defined($args{'_template'}) && length($args{'_template'}) - && -e "$path/logo_". $args{'_template'}. ".png" + if ( defined($args{'template'}) && length($args{'template'}) + && -e "$path/logo_". $args{'template'}. ".png" ) { - $file = "$path/logo_". $args{'_template'}. ".png"; + $file = "$path/logo_". $args{'template'}. ".png"; } else { $file = "$path/logo.png"; }