use default logo if the agent-specific one isn't found
[freeside.git] / httemplate / view / cust_bill-logo.cgi
1 <%
2
3 my($query) = $cgi->keywords;
4 $query =~ /^([^\.\/]*)$/;
5 my $templatename = $1;
6 if ( $templatename && $conf->exists("${logo}_$templatename.png") ) {
7   $templatename = "_$templatename";
8 } else {
9   $templatename = '';
10 }
11
12 my $conf = new FS::Conf;
13
14 http_header('Content-Type' => 'image/png' );
15 %><%= $conf->config_binary("logo$templatename.png") %>