invoice template and config localization, #12367
[freeside.git] / httemplate / view / cust_bill-logo.cgi
index ad2ff54..75321ef 100755 (executable)
@@ -5,7 +5,7 @@ die "access denied"
   unless $FS::CurrentUser::CurrentUser->access_right('View invoices')
       or $FS::CurrentUser::CurrentUser->access_right('Configuration');
 
-my $conf = new FS::Conf;
+my $conf;
 
 my $templatename;
 my $agentnum = '';
@@ -13,6 +13,7 @@ if ( $cgi->param('invnum') ) {
   $templatename = $cgi->param('template') || $cgi->param('templatename');
   my $cust_bill = qsearchs('cust_bill', { 'invnum' => $cgi->param('invnum') } )
     or die 'unknown invnum';
+  $conf = $cust_bill->conf;
   $agentnum = $cust_bill->cust_main->agentnum;
 } else {
   my($query) = $cgi->keywords;