[freeside-commits] freeside/httemplate/view cust_bill-logo.cgi, 1.4, 1.5

Ivan,,, ivan at wavetail.420.am
Thu Oct 6 16:09:41 PDT 2005


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

Modified Files:
	cust_bill-logo.cgi 
Log Message:
really 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.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cust_bill-logo.cgi	6 Oct 2005 23:07:27 -0000	1.4
+++ cust_bill-logo.cgi	6 Oct 2005 23:09:39 -0000	1.5
@@ -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") %>



More information about the freeside-commits mailing list