[freeside-commits] freeside/httemplate/view cust_bill-logo.cgi, 1.2, 1.3

Ivan,,, ivan at wavetail.420.am
Thu Oct 6 16:03:25 PDT 2005


Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail:/tmp/cvs-serv16380

Modified Files:
	cust_bill-logo.cgi 
Log Message:
use default logo if the agent-specific one isn't found

Index: cust_bill-logo.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_bill-logo.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cust_bill-logo.cgi	9 Jun 2005 06:56:31 -0000	1.2
+++ cust_bill-logo.cgi	6 Oct 2005 23:03:23 -0000	1.3
@@ -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") %>



More information about the freeside-commits mailing list