From: ivan Date: Thu, 6 Oct 2005 23:03:23 +0000 (+0000) Subject: use default logo if the agent-specific one isn't found X-Git-Tag: BEFORE_FINAL_MASONIZE~375 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=b3010f33ef9485271d34e43a8ed6f30094451397;p=freeside.git use default logo if the agent-specific one isn't found --- diff --git a/httemplate/view/cust_bill-logo.cgi b/httemplate/view/cust_bill-logo.cgi index 50812ea10..a1c9ddcf6 100755 --- a/httemplate/view/cust_bill-logo.cgi +++ b/httemplate/view/cust_bill-logo.cgi @@ -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") %>