Changeset 226
- Timestamp:
- 06/17/06 23:58:49 (2 years ago)
- Files:
-
- 1 modified
-
TagSupplementals/trunk/TagSupplementals.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
TagSupplementals/trunk/TagSupplementals.pl
r225 r226 44 44 on_stash => \&xsearch_on_stash, 45 45 }); 46 MT::Template::Context->add_tag(TagXSearchLink => \&tag_xsearch_link); 46 47 MT::Template::Context->add_container_tag(XSearchTags => \&xsearch_tags); 47 48 } … … 179 180 } 180 181 182 sub tag_xsearch_link { 183 my ($ctx, $args, $cond) = @_; 184 my $tag = $ctx->stash('Tag') or return ''; 185 my $delimiter = $args->{delimiter} || ''; 186 my $path = MT::Template::Context->_hdlr_cgi_path($ctx); 187 188 $path . 'mt-xsearch.cgi' . '?blog_id=' . $ctx->stash('blog_id') . 189 '&search_key=TagSupplementals' . 190 ($delimiter ? '&delimiter=' . MT::Util::encode_url($delimiter) : '') . 191 '&search=' . MT::Util::encode_url($tag->name); 192 } 193 181 194 sub xsearch_tags { 182 195 my ($ctx, $args, $cond) = @_;
![(please configure the [header_logo] section in trac.ini)](/public/chrome/common/trac_banner.png)