Changeset 5027

Show
Ignore:
Timestamp:
11/12/09 05:56:06 (4 months ago)
Author:
asawada
Message:

MultiBlog shoudn't set search include blogs context at inside of mt:Blogs block. bugzid:103060.

Location:
branches/greyhound
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/greyhound/lib/MT/Template/Tags/Blog.pm

    r4289 r5027  
    5959    local $ctx->{__stash}{archive_category} = undef 
    6060        if $args->{ignore_archive_context}; 
     61    local $ctx->{__stash}{inside_blogs} = 1; 
    6162 
    6263    require MT::Blog; 
  • branches/greyhound/lib/MT/Template/Tags/Website.pm

    r4725 r5027  
    5959    local $ctx->{__stash}{archive_category} = undef 
    6060        if $args->{ignore_archive_context}; 
     61    local $ctx->{__stash}{inside_blogs} = 1; 
    6162 
    6263    require MT::Website; 
  • branches/greyhound/plugins/MultiBlog/lib/MultiBlog.pm

    r4937 r5027  
    2626    unless ($args->{blog_id} || $args->{blog_ids} || $args->{include_blogs} || $args->{exclude_blogs}) { 
    2727        my $app = MT->instance; 
    28         if ($app->isa('MT::App::Search')) { 
     28        if ($app->isa('MT::App::Search') && !$ctx->stash('inside_blogs')) { 
    2929            if (my $excl = $app->{searchparam}{ExcludeBlogs}) { 
    3030                $args->{exclude_blogs} ||= join ',', @$excl;