summaryrefslogtreecommitdiff
path: root/httemplate/search/477.html
diff options
context:
space:
mode:
authorjeff <jeff>2010-06-05 05:54:08 +0000
committerjeff <jeff>2010-06-05 05:54:08 +0000
commitae10bcf15845d1397a51152ff185b1c8ca77b259 (patch)
treee59fe004f170ce93638cd1e915907e833d439d1e /httemplate/search/477.html
parentd09d7ce875d44aadbef0e3f6e69fa92c6b00f0ee (diff)
fix urls
Diffstat (limited to 'httemplate/search/477.html')
-rwxr-xr-xhttemplate/search/477.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/search/477.html b/httemplate/search/477.html
index 06e544c0b..63eab7ac8 100755
--- a/httemplate/search/477.html
+++ b/httemplate/search/477.html
@@ -43,7 +43,7 @@
% if ( $part eq 'IA' ) {
% for ( my $tech = 0; $tech < scalar(@technology_option); $tech++ ) {
% next unless $technology_option[$tech];
-% my $url = &{$url_mangler}($cgi->self_url, $part);
+% my $url = &{$url_mangler}($part);
% if ( $type eq 'xml' ) {
<<% 'Part_IA_'. chr(65 + $tech) %>>
% }
@@ -57,7 +57,7 @@
% if ( $type eq 'xml' ) {
<<% 'Part_'. uc($part) %>>
% }
-% my $url = &{$url_mangler}($cgi->self_url, $part);
+% my $url = &{$url_mangler}($part);
<% include( "477part${part}.html", 'url' => $url ) %>
% if ( $type eq 'xml' ) {
</<% 'Part_'. uc($part) %>>
@@ -83,8 +83,8 @@ my $type = $cgi->param('_type') || 'html';
my $xlsname = '477report';
my @technology_option = &FS::Report::FCC_477::parse_technology_option($cgi);
my $url_mangler = sub {
- my ($url, $part) = (shift, shift);
- warn "mangling $url with $part\n";
+ my $part = shift;
+ my $url = $cgi->url('-path_info' => 1, '-full' => 1);
$url =~ s/477\./477part$part./;
$url;
};