diff options
author | ivan <ivan> | 2007-04-19 20:18:05 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-04-19 20:18:05 +0000 |
commit | db4034e2019cb6c7f455640b89e8d5fedeb28932 (patch) | |
tree | d2dd105c92897747296f836b17f7f1d010239b60 /httemplate | |
parent | 5c38d5114cc5b2e8711abfb20b4d2cfb83f944f6 (diff) |
fix very strange "Undefined subroutine &FS::UI::Web::rooturl" with an explicit import. did i mention this was really really weird?
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/browse/part_svc.cgi | 2 | ||||
-rw-r--r-- | httemplate/elements/menu.html | 4 | ||||
-rw-r--r-- | httemplate/search/cust_svc.html | 2 | ||||
-rwxr-xr-x | httemplate/view/cust_main/packages.html | 14 |
4 files changed, 11 insertions, 11 deletions
diff --git a/httemplate/browse/part_svc.cgi b/httemplate/browse/part_svc.cgi index 92c0840b0..cce6af822 100755 --- a/httemplate/browse/part_svc.cgi +++ b/httemplate/browse/part_svc.cgi @@ -100,7 +100,7 @@ function part_export_areyousure(href) { <% $svcdb %></TD> <TD ROWSPAN=<% $rowspan %> CLASS="grid" BGCOLOR="<% $bgcolor %>"> - <FONT COLOR="#00CC00"><B><% $num_active_cust_svc{$part_svc->svcpart} %></B></FONT> <% $num_active_cust_svc{$part_svc->svcpart} ? FS::UI::Web::svc_url( 'ahref' => 1, 'm' => $m, 'action' => 'search', 'part_svc' => $part_svc, 'query' => "svcpart=". $part_svc->svcpart ) : '<A NAME="zero">' %>active</A> + <FONT COLOR="#00CC00"><B><% $num_active_cust_svc{$part_svc->svcpart} %></B></FONT> <% $num_active_cust_svc{$part_svc->svcpart} ? svc_url( 'ahref' => 1, 'm' => $m, 'action' => 'search', 'part_svc' => $part_svc, 'query' => "svcpart=". $part_svc->svcpart ) : '<A NAME="zero">' %>active</A> % if ( $num_active_cust_svc{$part_svc->svcpart} ) { <BR><FONT SIZE="-1">[ <A HREF="<%$p%>edit/bulk-cust_svc.html?svcpart=<% $part_svc->svcpart %>">change</A> ]</FONT> diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index f58da9e76..7ee34a977 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -120,14 +120,14 @@ foreach my $svcdb ( FS::part_svc->svc_tables() ) { if scalar(@$sorts) > 1; $report_svc{$title} = - [ FS::UI::Web::svc_url( %svc_url, 'query' => "magic=all;sortby=$sort" ), + [ svc_url( %svc_url, 'query' => "magic=all;sortby=$sort" ), '', ]; } if ( $curuser->access_right('View/link unlinked services') ) { $report_svc{"Unlinked $lcname"} = - [ FS::UI::Web::svc_url( %svc_url, 'query' => "magic=unlinked;sortby=". $sorts->[0] ), + [ svc_url( %svc_url, 'query' => "magic=unlinked;sortby=". $sorts->[0] ), "Pre-Freeside $lcname without a customer record", ]; } diff --git a/httemplate/search/cust_svc.html b/httemplate/search/cust_svc.html index 6369b202e..9a43a4139 100644 --- a/httemplate/search/cust_svc.html +++ b/httemplate/search/cust_svc.html @@ -115,7 +115,7 @@ my $count_query = "SELECT COUNT(*) FROM cust_svc $addl_from $extra_sql"; my $link = sub { my $cust_svc = shift; - my $url = FS::UI::Web::svc_url( + my $url = svc_url( 'm' => $m, 'action' => 'view', #'part_svc' => $cust_svc->part_svc, diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index c56904690..98acb8685 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -440,12 +440,12 @@ Current packages % ) { % $url = "${p}edit/process/". $part_svc->svcdb. ".cgi?$pkgnum_svcpart"; % } else { -% $url = FS::UI::Web::svc_url( -% 'm' => $m, -% 'action' => 'edit', -% 'part_svc' => $part_svc, -% 'query' => $pkgnum_svcpart, -% ); +% $url = svc_url( +% 'm' => $m, +% 'action' => 'edit', +% 'part_svc' => $part_svc, +% 'query' => $pkgnum_svcpart, +% ); % #$url = "${p}edit/$svcpart->{svcdb}.cgi?$pkgnum_svcpart"; % } % @@ -522,7 +522,7 @@ Current packages %sub pkg_link { % my($action, $label, $cust_pkg) = @_; % return '' unless $cust_pkg; -% qq!<a href="${p}$action.cgi?!. $cust_pkg->pkgnum. qq!">$label</a>!; +% qq!<a href="$p$action.cgi?!. $cust_pkg->pkgnum. qq!">$label</a>!; %} % %sub pkg_popup_link { |