Show
Ignore:
Timestamp:
01/18/08 23:33:00 (23 months ago)
Author:
bsmith
Message:

bugzid:66652 - updating the MTTagSearchLink function to produce a link having the tag at the end of the url & simplifying the template code based upon default behavior of the function

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-29/lib/MT/Template/ContextHandlers.pm

    r1236 r1287  
    19341934        or return $ctx->error($ctx->errstr); 
    19351935 
    1936     my $param = 'tag=' . encode_url($tag->name); 
     1936    my $param = ''; 
    19371937    my $blogs = $blog_terms{blog_id}; 
    19381938 
    19391939    if ($blogs) { 
    1940         $param .= '&'; 
    19411940        if (ref $blogs eq 'ARRAY') { 
    19421941            if ($blog_args{not}{blog_id}) { 
     
    19481947            $param .= 'blog_id=' . $blogs; 
    19491948        } 
    1950     } 
     1949        $param .= '&'; 
     1950    } 
     1951    $param .= 'tag=' . encode_url($tag->name); 
    19511952    my $path = _hdlr_cgi_path($ctx); 
    19521953    $path . $ctx->{config}->SearchScript . '?' . $param;