Show
Ignore:
Timestamp:
06/10/08 02:18:16 (18 months ago)
Author:
fumiakiy
Message:

Send return_url when static parameter is not available. BugId:79864

Files:
1 modified

Legend:

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

    r2530 r2535  
    1263812638 
    1263912639sub _load_sibling_categories { 
    12640     my ($ctx, $cat) = @_; 
     12640    my ($ctx, $cat, $class_type) = @_; 
    1264112641    my $blog_id = $cat->blog_id; 
    1264212642    my $r = MT::Request->instance; 
     
    1264412644    return $cats if $cats; 
    1264512645 
    12646     my @cats = MT::Category->load({blog_id => $blog_id, parent => $cat->parent}, 
     12646    my $class = MT->model($class_type); 
     12647    my @cats = $class->load({blog_id => $blog_id, parent => $cat->parent}, 
    1264712648                                  {'sort' => 'label', direction => 'ascend'}); 
    1264812649    $r->stash('__cat_cache_'.$blog_id.'_'.$cat->parent, \@cats); 
     
    1268312684        (($uncompiled =~ /<MT:?Pages/i) ? 1 : 0); 
    1268412685    my $blog_id = $cat->blog_id; 
    12685     my $cats = _load_sibling_categories($ctx, $cat); 
     12686    my $cats = _load_sibling_categories($ctx, $cat, $class_type); 
    1268612687    my ($pos, $idx); 
    1268712688    $idx = 0;