Changeset 474

Show
Ignore:
Timestamp:
07/23/08 00:53:17 (4 months ago)
Author:
ogawa
Message:

Comment out _object_tags().

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • TagSupplementals/trunk/TagSupplementals.pl

    r473 r474  
    2020    if ($HAVE_MT_XSEARCH) { 
    2121        MT::XSearch->add_search_plugin('TagSupplementals', { 
    22             label => 'Tag Search', 
     22            label       => 'Tag Search', 
    2323            description => 'Tag Search plugin for MT-XSearch', 
    24             on_execute => \&xsearch_on_execute, 
    25             on_stash => \&xsearch_on_stash, 
     24            on_execute  => \&xsearch_on_execute, 
     25            on_stash    => \&xsearch_on_stash, 
    2626        }); 
    2727    } 
     
    9696} 
    9797 
    98 sub _object_tags { 
    99     my ($blog_id, $tag_id) = @_; 
    100     my $r = MT::Request->instance; 
    101     my $otag_cache = $r->stash('object_tags_cache:' . $blog_id) || {}; 
    102     if (!$otag_cache->{$tag_id}) { 
    103         my @otags = MT::ObjectTag->load({ 
    104             blog_id           => $blog_id, 
    105             tag_id            => $tag_id, 
    106             object_datasource => MT::Entry->datasource, 
    107         }); 
    108         $otag_cache->{$tag_id} = \@otags; 
    109         $r->stash('object_tags_cache:' . $blog_id, $otag_cache); 
    110     } 
    111     $otag_cache->{$tag_id}; 
    112 } 
     98#sub _object_tags { 
     99#    my ($blog_id, $tag_id) = @_; 
     100#    my $r = MT::Request->instance; 
     101#    my $otag_cache = $r->stash('object_tags_cache:' . $blog_id) || {}; 
     102#    if (!$otag_cache->{$tag_id}) { 
     103#        my @otags = MT::ObjectTag->load({ 
     104#            blog_id           => $blog_id, 
     105#            tag_id            => $tag_id, 
     106#            object_datasource => MT::Entry->datasource, 
     107#        }); 
     108#        $otag_cache->{$tag_id} = \@otags; 
     109#        $r->stash('object_tags_cache:' . $blog_id, $otag_cache); 
     110#    } 
     111#    $otag_cache->{$tag_id}; 
     112#} 
    113113 
    114114sub related_entries {