X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fxmlhttp.html;h=6efc395f7a94eb3ccb667a6721dfa0dc9710b9f6;hb=a0a5a11af6648c147a1e68877ac099035c18790a;hp=425e28e3d437b9631aeead40b2f45e5796e179d3;hpb=9e342300c380e29af1b9678f1a9604609e0061b6;p=freeside.git diff --git a/httemplate/elements/xmlhttp.html b/httemplate/elements/xmlhttp.html index 425e28e3d..6efc395f7 100644 --- a/httemplate/elements/xmlhttp.html +++ b/httemplate/elements/xmlhttp.html @@ -1,10 +1,16 @@ -<% - my ( $url, @subs ) = @_; +% +% my ( %opt ) = @_; +% +% my $url = $opt{'url'}; +% my $method = exists($opt{'method'}) ? $opt{'method'} : 'GET'; +% #my @subs = @{ $opt{'subs'}; +% my $key = exists($opt{'key'}) ? $opt{'key'} : ''; +% +% $url .= ( ($url =~ /\?/) ? '&' : '?' ) +% if $method eq 'GET'; +% +% - $url .= ( ($url =~ /\?/) ? '&' : '?' ). - 'sub='; - -%>