Changeset 1195

Show
Ignore:
Timestamp:
08/01/06 16:30:53
Author:
miyagawa
Message:

EntryFullText?: remove double compilation of YAML scripts

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Filter/EntryFullText.pm

    r1193 r1195  
    5959    (my $pkg = $base) =~ s/\.pl$//; 
    6060    my $plugin_class = "Plagger::Plugin::Filter::EntryFullText::Site::$pkg"; 
     61 
     62    if ($plugin_class->can('new')) { 
     63        Plagger->context->log(warn => "$plugin_class is already defined. skip compiling code"); 
     64        return $plugin_class->new; 
     65    } 
    6166 
    6267    my $code = join '', <$fh>;