use default logo if the agent-specific one isn't found
[freeside.git] / httemplate / view / cust_bill-logo.cgi
index 50812ea..a1c9ddc 100755 (executable)
@@ -3,10 +3,10 @@
 my($query) = $cgi->keywords;
 $query =~ /^([^\.\/]*)$/;
 my $templatename = $1;
-$templatename = "_$templatename" if $templatename;
+$templatename = "_$templatename"
+  if $templatename && $conf->exists("${logo}_$templatename.png");
 
 my $conf = new FS::Conf;
-http_header('Content-Type' => 'image/png' );
 
 http_header('Content-Type' => 'image/png' );
 %><%= $conf->config_binary("logo$templatename.png") %>