[freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi cust_bill-logo.cgi, 1.4, 1.4.2.1
Ivan,,,
ivan at wavetail.420.am
Mon Jul 13 02:19:05 PDT 2009
Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi
In directory wavetail.420.am:/tmp/cvs-serv2262/fs_selfservice/FS-SelfService/cgi
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_bill-logo.cgi
Log Message:
fix self-service agent-specific logos
Index: cust_bill-logo.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/cust_bill-logo.cgi,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -d -r1.4 -r1.4.2.1
--- cust_bill-logo.cgi 23 Oct 2006 08:30:17 -0000 1.4
+++ cust_bill-logo.cgi 13 Jul 2009 09:19:03 -0000 1.4.2.1
@@ -7,10 +7,16 @@
my $cgi = new CGI;
-my($query) = $cgi->keywords;
-$query =~ /^([^\.\/]*)$/ or '' =~ /^()$/;
-my $templatename = $1;
-my $hashref = invoice_logo('templatename' => $templatename);
+my %hash = ();
+if ( $cgi->param('invnum') ) {
+ $hash{$_} = scalar($cgi->param($_)) foreach qw( invnum template );
+} else {
+ my($query) = $cgi->keywords;
+ $query =~ /^([^\.\/]*)$/ or '' =~ /^()$/;
+ $hash{'template'} = $1;
+}
+
+my $hashref = invoice_logo(%hash);
print $cgi->header( '-type' => $hashref->{'content_type'},
'-expires' => 'now',
More information about the freeside-commits
mailing list