diff options
author | ivan <ivan> | 2005-10-06 23:09:39 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-10-06 23:09:39 +0000 |
commit | e65217c9d44ce759a397f3948c2f19ceb16f8931 (patch) | |
tree | 08a3138da89416bb773ccc21a2330f7ad52caaa3 | |
parent | 0247cadb339f3aee8dad1fc6bb319a2d3b8cb448 (diff) |
really use default logo if the agent-specific one isn't found
-rwxr-xr-x | httemplate/view/cust_bill-logo.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/view/cust_bill-logo.cgi b/httemplate/view/cust_bill-logo.cgi index 96471ffc6..235485f6b 100755 --- a/httemplate/view/cust_bill-logo.cgi +++ b/httemplate/view/cust_bill-logo.cgi @@ -1,15 +1,15 @@ <% +my $conf = new FS::Conf; + my($query) = $cgi->keywords; $query =~ /^([^\.\/]*)$/; my $templatename = $1; -if ( $templatename && $conf->exists("${logo}_$templatename.png") ) { +if ( $templatename && $conf->exists("logo_$templatename.png") ) { $templatename = "_$templatename"; } else { $templatename = ''; } -my $conf = new FS::Conf; - http_header('Content-Type' => 'image/png' ); %><%= $conf->config_binary("logo$templatename.png") %> |