projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0247cad
)
really use default logo if the agent-specific one isn't found
author
ivan
<ivan>
Thu, 6 Oct 2005 23:09:39 +0000
(23:09 +0000)
committer
ivan
<ivan>
Thu, 6 Oct 2005 23:09:39 +0000
(23:09 +0000)
httemplate/view/cust_bill-logo.cgi
patch
|
blob
|
history
diff --git
a/httemplate/view/cust_bill-logo.cgi
b/httemplate/view/cust_bill-logo.cgi
index
96471ff
..
235485f
100755
(executable)
--- 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;
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 = '';
}
$templatename = "_$templatename";
} else {
$templatename = '';
}
-my $conf = new FS::Conf;
-
http_header('Content-Type' => 'image/png' );
%><%= $conf->config_binary("logo$templatename.png") %>
http_header('Content-Type' => 'image/png' );
%><%= $conf->config_binary("logo$templatename.png") %>