Changeset 2537
- Timestamp:
- 06/10/08 02:20:21 (20 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-39/lib/MT/Template/ContextHandlers.pm
r2535 r2537 12638 12638 12639 12639 sub _load_sibling_categories { 12640 my ($ctx, $cat , $class_type) = @_;12640 my ($ctx, $cat) = @_; 12641 12641 my $blog_id = $cat->blog_id; 12642 12642 my $r = MT::Request->instance; … … 12644 12644 return $cats if $cats; 12645 12645 12646 my $class = MT->model($class_type); 12647 my @cats = $class->load({blog_id => $blog_id, parent => $cat->parent}, 12646 my @cats = MT::Category->load({blog_id => $blog_id, parent => $cat->parent}, 12648 12647 {'sort' => 'label', direction => 'ascend'}); 12649 12648 $r->stash('__cat_cache_'.$blog_id.'_'.$cat->parent, \@cats); … … 12684 12683 (($uncompiled =~ /<MT:?Pages/i) ? 1 : 0); 12685 12684 my $blog_id = $cat->blog_id; 12686 my $cats = _load_sibling_categories($ctx, $cat , $class_type);12685 my $cats = _load_sibling_categories($ctx, $cat); 12687 12686 my ($pos, $idx); 12688 12687 $idx = 0;
